wok-4.x view fcitx-zm/receipt @ rev 10400
usbutils: put ids file in /usr/share/misc and use gzip one. Also include usb-device and hid dump
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 03:05:34 2011 +0200 (2011-05-24) |
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 }