# SliTaz package receipt. PACKAGE="fcitx" VERSION="4.1.2" CATEGORY="x-window" SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux." MAINTAINER="lufeng369@gmail.com" DEPENDS="libfcitx fcitx-skin-default gtk+" BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc" TARBALL="$PACKAGE-${VERSION}_all.tar.bz2" WEB_SITE="http://code.google.com/p/fcitx/" WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" # Rules to configure and make the package. compile_rules() { mkdir -p $src/build cd $src/build cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1 cd $src make -C build || return 1 make install/fast -C build DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/ cp -a $_pkg/usr/bin/fcitx $fs/usr/bin/ cp -a $_pkg/usr/bin/fcitx-configtool $fs/usr/bin/ cp -a $_pkg/usr/bin/fcitx-remote $fs/usr/bin/ cp -a $_pkg/usr/bin/fcitx4-config $fs/usr/bin/ cp -a $_pkg/usr/share/fcitx/addon/ $fs/usr/share/fcitx/ cp -a $_pkg/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/ cp -a $_pkg/usr/share/fcitx/data/ $fs/usr/share/fcitx/ cp -a $_pkg/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/ cp -a $_pkg/usr/share/fcitx/table/ $fs/usr/share/fcitx/ cp -a $_pkg/usr/share/applications/*.desktop $fs/usr/share/applications/ cp -a $_pkg/usr/share/icons/ $fs/usr/share/ }