wok annotate fcitx-zm/receipt @ rev 21122
fbida: jpeg 9 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 20 11:08:01 2019 +0100 (2019-03-20) |
parents | 16b71730d7fc |
children | 94dd3813f40d |
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@20673 | 7 WEB_SITE="https://fcitx-im.org/wiki/Fcitx" |
pascal@13025 | 8 MAINTAINER="lufeng369@slitaz.org" |
pascal@15061 | 9 LICENSE="GPL2" |
pascal@15061 | 10 TARBALL="zm.mb" |
pascal@15061 | 11 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" |
pascal@15061 | 12 |
lufeng369@7761 | 13 DEPENDS="fcitx" |
pascal@15066 | 14 BUILD_DEPENDS="fcitx-tools" |
pascal@15061 | 15 |
lufeng369@7761 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
lufeng369@7761 | 17 compile_rules() |
lufeng369@7761 | 18 { |
lufeng369@7761 | 19 echo -n "Remove All Words,Remained Hanzi only" |
pascal@9083 | 20 mkdir $DESTDIR |
pascal@9083 | 21 cd $DESTDIR |
pascal@9083 | 22 [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1 |
pascal@9083 | 23 cp $stuff/zm.conf . |
pascal@9083 | 24 mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt |
pascal@9083 | 25 txt2mb zm.txt zm.mb |
pascal@9083 | 26 } |
lufeng369@7761 | 27 |
lufeng369@7761 | 28 genpkg_rules() |
lufeng369@7761 | 29 { |
lufeng369@7761 | 30 EXTDIR="$fs/usr/share/fcitx/data/table" |
lufeng369@7761 | 31 mkdir -p $EXTDIR |
pascal@15061 | 32 cp $install/zm.mb $EXTDIR |
pascal@15061 | 33 cp $install/zm.conf $EXTDIR |
lufeng369@7761 | 34 } |
lufeng369@7761 | 35 |