wok-next annotate fcitx-zm/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | a3c581bf52b8 |
children |
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@13025 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15061 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="https://fcitx-im.org/wiki/Fcitx" |
al@21020 | 10 |
pascal@15061 | 11 TARBALL="zm.mb" |
al@20906 | 12 WGET_URL="https://download.fcitx-im.org/data/$TARBALL" |
pascal@15061 | 13 |
pascal@15066 | 14 BUILD_DEPENDS="fcitx-tools" |
pascal@15061 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 # Remove all words, remained Hanzi only |
al@21020 | 18 mkdir $install |
al@21020 | 19 cd $install |
al@20513 | 20 [ -s $SRC/zm.mb ] || wget -P $SRC $WGET_URL || return 1 |
pascal@9083 | 21 cp $stuff/zm.conf . |
al@20513 | 22 mb2txt $SRC/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt |
pascal@9083 | 23 txt2mb zm.txt zm.mb |
pascal@9083 | 24 } |
lufeng369@7761 | 25 |
al@21020 | 26 genpkg_rules() { |
lufeng369@7761 | 27 EXTDIR="$fs/usr/share/fcitx/data/table" |
lufeng369@7761 | 28 mkdir -p $EXTDIR |
al@21020 | 29 cp $install/zm.mb $EXTDIR |
pascal@15061 | 30 cp $install/zm.conf $EXTDIR |
al@21020 | 31 DEPENDS="fcitx" |
lufeng369@7761 | 32 } |