wok-current annotate fcitx-zm/receipt @ rev 19712

podofo: disble lua
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 15 17:57:05 2017 +0100 (2017-02-15)
parents ef0ed7be0f2f
children e3f377fbc5f0
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"
pascal@15061 9 LICENSE="GPL2"
pascal@15061 10 TARBALL="zm.mb"
pascal@15061 11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
pascal@15061 12
lufeng369@7761 13 DEPENDS="fcitx"
pascal@15066 14 BUILD_DEPENDS="fcitx-tools"
pascal@15061 15
lufeng369@7761 16 # Rules to gen a SliTaz package suitable for Tazpkg.
lufeng369@7761 17 compile_rules()
lufeng369@7761 18 {
lufeng369@7761 19 echo -n "Remove All Words,Remained Hanzi only"
pascal@9083 20 mkdir $DESTDIR
pascal@9083 21 cd $DESTDIR
pascal@9083 22 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1
pascal@9083 23 cp $stuff/zm.conf .
pascal@9083 24 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
pascal@9083 25 txt2mb zm.txt zm.mb
pascal@9083 26 }
lufeng369@7761 27
lufeng369@7761 28 genpkg_rules()
lufeng369@7761 29 {
lufeng369@7761 30 EXTDIR="$fs/usr/share/fcitx/data/table"
lufeng369@7761 31 mkdir -p $EXTDIR
pascal@15061 32 cp $install/zm.mb $EXTDIR
pascal@15061 33 cp $install/zm.conf $EXTDIR
lufeng369@7761 34 }
lufeng369@7761 35