a new receipt for fcitx 4.1.1,it works..

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


# SliTaz package receipt.

PACKED_SIZE="1.8M"
UNPACKED_SIZE="7.1M"
PACKAGE="fcitx"
VERSION="4.1.1"
CATEGORY="x-window"
SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux."
MAINTAINER="lufeng369@xxxxxxxxx"
DEPENDS="gtk+"
BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-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_DBUS=OFF -DENABLE_OPENCC=OFF -DENABLE_TABLE=OFF || 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()
{
  cp -a $_pkg/usr $fs/
  sed -i 's/DefaultValue=default/DefaultValue=classic/' $fs/usr/share/fcitx/configdesc/fcitx-classic-ui.desc
  sed -i \
      -e 's/DefaultValue=L_CTRL/DefaultValue=L_SHIFT/' \
      -e 's/DefaultValue=ALT_SPACE/DefaultValue=CTRL_./' \
      -e 's/DefaultValue=-/DefaultValue=,/' \
      -e 's/DefaultValue==/DefaultValue=./' $fs/usr/share/fcitx/configdesc/config.desc
}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/