SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fcitx-zm"

# SliTaz package receipt.

PACKAGE="fcitx-zm"
VERSION="4.0"
CATEGORY="x-window"
SHORT_DESC="Zhengma Table for FCITX-4.0"
WEB_SITE="http://fcitx.googlecode.com/"
MAINTAINER="lufeng369"
DEPENDS="fcitx"
BUILD_DEPENDS="fcitx"
TARBALL="zm.mb"
WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
# Rules to gen a SliTaz package suitable for Tazpkg.
compile_rules()
{
    echo -n "Remove All Words,Remained Hanzi only"
    mkdir $DESTDIR
    cd $DESTDIR
    [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1
    cp $stuff/zm.conf .
    mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt
    txt2mb zm.txt zm.mb
}

genpkg_rules()
{
    EXTDIR="$fs/usr/share/fcitx/data/table"
    mkdir -p $EXTDIR
    cp $_pkg/zm.mb $EXTDIR    
    cp $_pkg/zm.conf $EXTDIR
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)