wok view fcitx-zm/receipt @ rev 13521
Up task (2.1.2)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Fri Oct 19 19:53:45 2012 +0100 (2012-10-19) |
parents | 04c86a61ddf9 |
children | ef0ed7be0f2f |
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 WEB_SITE="http://fcitx.googlecode.com/"
8 MAINTAINER="lufeng369@slitaz.org"
9 DEPENDS="fcitx"
10 BUILD_DEPENDS="fcitx"
11 TARBALL="zm.mb"
12 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 compile_rules()
15 {
16 echo -n "Remove All Words,Remained Hanzi only"
17 mkdir $DESTDIR
18 cd $DESTDIR
19 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1
20 cp $stuff/zm.conf .
21 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
22 txt2mb zm.txt zm.mb
23 }
25 genpkg_rules()
26 {
27 EXTDIR="$fs/usr/share/fcitx/data/table"
28 mkdir -p $EXTDIR
29 cp $_pkg/zm.mb $EXTDIR
30 cp $_pkg/zm.conf $EXTDIR
31 }