wok-6.x annotate fcitx-zm/receipt @ rev 9083

fcitx-zm: no work into stuff
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 17:24:29 2011 +0100 (2011-03-04)
parents 05b19606376a
children 04c86a61ddf9
rev   line source
lufeng369@7761 1 # SliTaz package receipt.
lufeng369@7761 2
lufeng369@7761 3 PACKAGE="fcitx-zm"
lufeng369@7761 4 VERSION="4.0"
lufeng369@7761 5 CATEGORY="x-window"
lufeng369@7761 6 SHORT_DESC="Zhengma Table for FCITX-4.0"
lufeng369@7761 7 MAINTAINER="lufeng369"
lufeng369@7761 8 DEPENDS="fcitx"
lufeng369@7761 9 BUILD_DEPENDS="fcitx"
gokhlayeh@8551 10 TARBALL="zm.mb"
gokhlayeh@8551 11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
lufeng369@7761 12 # Rules to gen a SliTaz package suitable for Tazpkg.
lufeng369@7761 13 compile_rules()
lufeng369@7761 14 {
lufeng369@7761 15 echo -n "Remove All Words,Remained Hanzi only"
pascal@9083 16 mkdir $DESTDIR
pascal@9083 17 cd $DESTDIR
pascal@9083 18 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1
pascal@9083 19 cp $stuff/zm.conf .
pascal@9083 20 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
pascal@9083 21 txt2mb zm.txt zm.mb
pascal@9083 22 }
lufeng369@7761 23
lufeng369@7761 24 genpkg_rules()
lufeng369@7761 25 {
lufeng369@7761 26 EXTDIR="$fs/usr/share/fcitx/data/table"
lufeng369@7761 27 mkdir -p $EXTDIR
pascal@9083 28 cp $_pkg/zm.mb $EXTDIR
pascal@9083 29 cp $_pkg/zm.conf $EXTDIR
lufeng369@7761 30 }
lufeng369@7761 31