wok-next view fcitx-zm/receipt @ rev 20870
bleachbit: up (2.0); fbxkb and foobillardplus: fix build; add jdupes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 15:13:13 2018 +0300 (2018-07-02) |
parents | 16b71730d7fc |
children | a3c581bf52b8 |
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 WEB_SITE="http://fcitx.googlecode.com/"
8 MAINTAINER="lufeng369@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="zm.mb"
11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
13 DEPENDS="fcitx"
14 BUILD_DEPENDS="fcitx-tools"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 compile_rules()
18 {
19 echo -n "Remove All Words,Remained Hanzi only"
20 mkdir $DESTDIR
21 cd $DESTDIR
22 [ -s $SRC/zm.mb ] || wget -P $SRC $WGET_URL || return 1
23 cp $stuff/zm.conf .
24 mb2txt $SRC/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
25 txt2mb zm.txt zm.mb
26 }
28 genpkg_rules()
29 {
30 EXTDIR="$fs/usr/share/fcitx/data/table"
31 mkdir -p $EXTDIR
32 cp $install/zm.mb $EXTDIR
33 cp $install/zm.conf $EXTDIR
34 }