wok annotate fcitx-zm/receipt @ rev 14865
Up: perl-extutils-depends (0.304)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jul 22 19:45:04 2013 -0300 (2013-07-22) |
parents | 04c86a61ddf9 |
children | ef0ed7be0f2f |
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" |
pascal@11823 | 7 WEB_SITE="http://fcitx.googlecode.com/" |
pascal@13025 | 8 MAINTAINER="lufeng369@slitaz.org" |
lufeng369@7761 | 9 DEPENDS="fcitx" |
lufeng369@7761 | 10 BUILD_DEPENDS="fcitx" |
gokhlayeh@8551 | 11 TARBALL="zm.mb" |
gokhlayeh@8551 | 12 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" |
lufeng369@7761 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7761 | 14 compile_rules() |
lufeng369@7761 | 15 { |
lufeng369@7761 | 16 echo -n "Remove All Words,Remained Hanzi only" |
pascal@9083 | 17 mkdir $DESTDIR |
pascal@9083 | 18 cd $DESTDIR |
pascal@9083 | 19 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1 |
pascal@9083 | 20 cp $stuff/zm.conf . |
pascal@9083 | 21 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt |
pascal@9083 | 22 txt2mb zm.txt zm.mb |
pascal@9083 | 23 } |
lufeng369@7761 | 24 |
lufeng369@7761 | 25 genpkg_rules() |
lufeng369@7761 | 26 { |
lufeng369@7761 | 27 EXTDIR="$fs/usr/share/fcitx/data/table" |
lufeng369@7761 | 28 mkdir -p $EXTDIR |
pascal@9083 | 29 cp $_pkg/zm.mb $EXTDIR |
pascal@9083 | 30 cp $_pkg/zm.conf $EXTDIR |
lufeng369@7761 | 31 } |
lufeng369@7761 | 32 |