wok-next view fcitx-zm/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
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 }