wok-current view fcitx-zm/receipt @ rev 8272
Up: xorg-xproto to 7.0.20.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 30 03:06:51 2011 +0000 (2011-01-30) |
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 }