wok-next diff fcitx-zm/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a3c581bf52b8 |
children |
line diff
1.1 --- a/fcitx-zm/receipt Fri Aug 10 12:53:17 2018 +0300 1.2 +++ b/fcitx-zm/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,32 +4,29 @@ 1.4 VERSION="4.0" 1.5 CATEGORY="x-window" 1.6 SHORT_DESC="Zhengma Table for FCITX-4.0" 1.7 -WEB_SITE="https://fcitx-im.org/wiki/Fcitx" 1.8 MAINTAINER="lufeng369@slitaz.org" 1.9 LICENSE="GPL2" 1.10 +WEB_SITE="https://fcitx-im.org/wiki/Fcitx" 1.11 + 1.12 TARBALL="zm.mb" 1.13 WGET_URL="https://download.fcitx-im.org/data/$TARBALL" 1.14 1.15 -DEPENDS="fcitx" 1.16 BUILD_DEPENDS="fcitx-tools" 1.17 1.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 -compile_rules() 1.20 -{ 1.21 - echo -n "Remove All Words,Remained Hanzi only" 1.22 - mkdir $DESTDIR 1.23 - cd $DESTDIR 1.24 +compile_rules() { 1.25 + # Remove all words, remained Hanzi only 1.26 + mkdir $install 1.27 + cd $install 1.28 [ -s $SRC/zm.mb ] || wget -P $SRC $WGET_URL || return 1 1.29 cp $stuff/zm.conf . 1.30 mb2txt $SRC/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt 1.31 txt2mb zm.txt zm.mb 1.32 } 1.33 1.34 -genpkg_rules() 1.35 -{ 1.36 +genpkg_rules() { 1.37 EXTDIR="$fs/usr/share/fcitx/data/table" 1.38 mkdir -p $EXTDIR 1.39 - cp $install/zm.mb $EXTDIR 1.40 + cp $install/zm.mb $EXTDIR 1.41 cp $install/zm.conf $EXTDIR 1.42 + DEPENDS="fcitx" 1.43 } 1.44 -