wok-6.x annotate fcitx-zm/receipt @ rev 8500
Up: xorg-inputproto to 2.0.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 11 02:24:06 2011 +0000 (2011-02-11) |
parents | |
children | 05b19606376a |
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" |
lufeng369@7761 | 10 FILE="zm.mb" |
lufeng369@7761 | 11 URL="http://fcitx.googlecode.com/files/$FILE" |
lufeng369@7761 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7761 | 13 compile_rules() |
lufeng369@7761 | 14 { |
lufeng369@7761 | 15 cd $WOK/$PACKAGE |
lufeng369@7761 | 16 echo "Downloading Archive" |
lufeng369@7761 | 17 wget -O $SOURCES_REPOSITORY/$FILE $URL |
lufeng369@7761 | 18 # re-generate |
lufeng369@7761 | 19 echo -n "Remove All Words,Remained Hanzi only" |
lufeng369@7761 | 20 # mkdir stuff |
lufeng369@7761 | 21 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt |
lufeng369@7761 | 22 cd stuff && txt2mb zm.txt zm.mb |
lufeng369@7761 | 23 cd .. |
lufeng369@7761 | 24 status |
lufeng369@7761 | 25 |
lufeng369@7761 | 26 } |
lufeng369@7761 | 27 genpkg_rules() |
lufeng369@7761 | 28 { |
lufeng369@7761 | 29 EXTDIR="$fs/usr/share/fcitx/data/table" |
lufeng369@7761 | 30 mkdir -p $EXTDIR |
lufeng369@7761 | 31 cp stuff/zm.mb $EXTDIR |
lufeng369@7761 | 32 cp stuff/zm.conf $EXTDIR |
lufeng369@7761 | 33 |
lufeng369@7761 | 34 } |
lufeng369@7761 | 35 |