wok-next view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="fcitx-zm"
4 VERSION="4.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Zhengma Table for FCITX-4.0"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://fcitx-im.org/wiki/Fcitx"
11 TARBALL="zm.mb"
12 WGET_URL="https://download.fcitx-im.org/data/$TARBALL"
14 BUILD_DEPENDS="fcitx-tools"
16 compile_rules() {
17 # Remove all words, remained Hanzi only
18 mkdir $install
19 cd $install
20 [ -s $SRC/zm.mb ] || wget -P $SRC $WGET_URL || return 1
21 cp $stuff/zm.conf .
22 mb2txt $SRC/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
23 txt2mb zm.txt zm.mb
24 }
26 genpkg_rules() {
27 EXTDIR="$fs/usr/share/fcitx/data/table"
28 mkdir -p $EXTDIR
29 cp $install/zm.mb $EXTDIR
30 cp $install/zm.conf $EXTDIR
31 DEPENDS="fcitx"
32 }