wok-next annotate fcitx-zm/receipt @ rev 8668
Up: tazwok-experimental 0.0.6.4
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Feb 16 22:59:02 2011 +0100 (2011-02-16) |
parents | 8437bf104f21 |
children | 25ffa17d5c17 |
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" |
lufeng369@7761 | 16 # mkdir stuff |
lufeng369@7761 | 17 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt |
lufeng369@7761 | 18 cd stuff && txt2mb zm.txt zm.mb |
lufeng369@7761 | 19 cd .. |
lufeng369@7761 | 20 status |
lufeng369@7761 | 21 |
lufeng369@7761 | 22 } |
lufeng369@7761 | 23 genpkg_rules() |
lufeng369@7761 | 24 { |
lufeng369@7761 | 25 EXTDIR="$fs/usr/share/fcitx/data/table" |
lufeng369@7761 | 26 mkdir -p $EXTDIR |
lufeng369@7761 | 27 cp stuff/zm.mb $EXTDIR |
lufeng369@7761 | 28 cp stuff/zm.conf $EXTDIR |
lufeng369@7761 | 29 } |
lufeng369@7761 | 30 |