wok view fcitx-zm/receipt @ rev 11957

Up: slitaz-configs (4.8.1)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 01 17:57:06 2012 +0100 (2012-03-01)
parents 25ffa17d5c17
children 8387b6915400
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"
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 }