wok-next diff fcitx-zm/receipt @ rev 8022
up: xfce4-panel* (4.8.0)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 20 02:16:45 2011 +0100 (2011-01-20) |
parents | |
children | 05b19606376a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fcitx-zm/receipt Thu Jan 20 02:16:45 2011 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="fcitx-zm" 1.7 +VERSION="4.0" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Zhengma Table for FCITX-4.0" 1.10 +MAINTAINER="lufeng369" 1.11 +DEPENDS="fcitx" 1.12 +BUILD_DEPENDS="fcitx" 1.13 +FILE="zm.mb" 1.14 +URL="http://fcitx.googlecode.com/files/$FILE" 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $WOK/$PACKAGE 1.19 + echo "Downloading Archive" 1.20 + wget -O $SOURCES_REPOSITORY/$FILE $URL 1.21 + # re-generate 1.22 + echo -n "Remove All Words,Remained Hanzi only" 1.23 +# mkdir stuff 1.24 + mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt 1.25 + cd stuff && txt2mb zm.txt zm.mb 1.26 + cd .. 1.27 + status 1.28 + 1.29 +} 1.30 +genpkg_rules() 1.31 +{ 1.32 + EXTDIR="$fs/usr/share/fcitx/data/table" 1.33 + mkdir -p $EXTDIR 1.34 + cp stuff/zm.mb $EXTDIR 1.35 + cp stuff/zm.conf $EXTDIR 1.36 + 1.37 +} 1.38 +