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