wok-current view fcitx-zm/receipt @ rev 7764
Up: xorg-xbitmaps to 1.1.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Dec 22 10:16:09 2010 +0000 (2010-12-22) |
parents | |
children | 05b19606376a |
line source
1 # SliTaz package receipt.
3 PACKAGE="fcitx-zm"
4 VERSION="4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Zhengma Table for FCITX-4.0"
7 MAINTAINER="lufeng369"
8 DEPENDS="fcitx"
9 BUILD_DEPENDS="fcitx"
10 FILE="zm.mb"
11 URL="http://fcitx.googlecode.com/files/$FILE"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 compile_rules()
14 {
15 cd $WOK/$PACKAGE
16 echo "Downloading Archive"
17 wget -O $SOURCES_REPOSITORY/$FILE $URL
18 # re-generate
19 echo -n "Remove All Words,Remained Hanzi only"
20 # mkdir stuff
21 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt
22 cd stuff && txt2mb zm.txt zm.mb
23 cd ..
24 status
26 }
27 genpkg_rules()
28 {
29 EXTDIR="$fs/usr/share/fcitx/data/table"
30 mkdir -p $EXTDIR
31 cp stuff/zm.mb $EXTDIR
32 cp stuff/zm.conf $EXTDIR
34 }