wok view fcitx/receipt @ rev 10958

Add: opencc
author Liu Peng <hipeng@yahoo.com>
date Tue Sep 20 20:35:27 2011 +0800 (2011-09-20)
parents a6cc66b552c6
children 3af70ef3a7ac
line source
1 # SliTaz package receipt.
3 PACKAGE="fcitx"
4 VERSION="4.1.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux."
7 MAINTAINER="lufeng369@gmail.com"
8 DEPENDS="libfcitx fcitx-skin-default gtk+"
9 BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc"
10 TARBALL="$PACKAGE-${VERSION}_all.tar.bz2"
11 WEB_SITE="http://code.google.com/p/fcitx/"
12 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 mkdir build
19 pushd build
20 cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1
21 popd
22 make -C build || return 1
23 make install/fast -C build DESTDIR=$PWD/_pkg
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/
30 cp -a $_pkg/usr/bin/fcitx $fs/usr/bin/
31 cp -a $_pkg/usr/bin/fcitx-configtool $fs/usr/bin/
32 cp -a $_pkg/usr/bin/fcitx-remote $fs/usr/bin/
33 cp -a $_pkg/usr/bin/fcitx4-config $fs/usr/bin/
34 cp -a $_pkg/usr/share/fcitx/addon/ $fs/usr/share/fcitx/
35 cp -a $_pkg/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/
36 cp -a $_pkg/usr/share/fcitx/data/ $fs/usr/share/fcitx/
37 cp -a $_pkg/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/
38 cp -a $_pkg/usr/share/fcitx/table/ $fs/usr/share/fcitx/
39 cp -a $_pkg/usr/share/applications/*.desktop $fs/usr/share/applications/
40 cp -a $_pkg/usr/share/icons/ $fs/usr/share/
41 }