wok-6.x view fcitx-zm/receipt @ rev 9681

Fixed up xorg-dev and xorg-dev-proto.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 06 17:33:24 2011 +0000 (2011-05-06)
parents 05b19606376a
children 04c86a61ddf9
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 TARBALL="zm.mb"
11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 compile_rules()
14 {
15 echo -n "Remove All Words,Remained Hanzi only"
16 mkdir $DESTDIR
17 cd $DESTDIR
18 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1
19 cp $stuff/zm.conf .
20 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
21 txt2mb zm.txt zm.mb
22 }
24 genpkg_rules()
25 {
26 EXTDIR="$fs/usr/share/fcitx/data/table"
27 mkdir -p $EXTDIR
28 cp $_pkg/zm.mb $EXTDIR
29 cp $_pkg/zm.conf $EXTDIR
30 }