wok-current annotate scim-pinyin/receipt @ rev 1803

Add scim-pinyin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 02 09:33:47 2008 +0000 (2008-12-02)
parents
children 0b02072d7f48
rev   line source
pascal@1803 1 # SliTaz package receipt.
pascal@1803 2
pascal@1803 3 PACKAGE="scim-pinyin"
pascal@1803 4 VERSION="0.5.91"
pascal@1803 5 CATEGORY="utilities"
pascal@1803 6 SHORT_DESC="Chinese PinYin input for SCIM"
pascal@1803 7 MAINTAINER="slitaz@pworld.otherinbox.com"
pascal@1803 8 DEPENDS="scim"
pascal@1803 9 BUILD_DEPENDS="scim scim-dev"
pascal@1803 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1803 11 WEB_SITE="http://www.scim-im.org/"
pascal@1803 12 #WGET_URL="$SF_MIRROR/scim/$TARBALL"
pascal@1803 13 WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL"
pascal@1803 14
pascal@1803 15 # Rules to configure and make the package.
pascal@1803 16 compile_rules()
pascal@1803 17 {
pascal@1803 18 cd $src
pascal@1803 19 export PKG_CONFIG_PATH=/usr/pkgconfig
pascal@1803 20 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1803 21 --mandir=/usr/share/man --disable-static $CONFIGURE_ARGS &&
pascal@1803 22 make &&
pascal@1803 23 make DESTDIR=$PWD/_pkg install
pascal@1803 24 }
pascal@1803 25
pascal@1803 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1803 27 genpkg_rules()
pascal@1803 28 {
pascal@1803 29 mkdir -p $fs/usr/share
pascal@1803 30 cp -a $_pkg/usr/lib $fs/usr
pascal@1803 31 cp -a $_pkg/usr/share/scim $fs/usr/share
pascal@1803 32
pascal@1803 33 # say goodbye to .la files
pascal@1803 34 find $fs/usr/lib -name '*.la' -exec rm {} \;
pascal@1803 35 find $fs/usr/lib -name '*.so' -exec strip -s {} \;
pascal@1803 36 }
pascal@1803 37
pascal@1803 38 # Pre and post install commands for Tazpkg.
pascal@1803 39 post_install()
pascal@1803 40 {
pascal@1803 41 cat <<EOT
pascal@1803 42 ------------
pascal@1803 43 In order to start scim and use chinese after boot time,
pascal@1803 44 add the following code to your ~/.profile file:
pascal@1803 45 export XMODIFIERS=@im=SCIM
pascal@1803 46 export XIM="scim"
pascal@1803 47 export XINPUT="xim"
pascal@1803 48 export XIM_PROGRAM="scim -d"
pascal@1803 49 export GTK_IM_MODULE=scim
pascal@1803 50 export QT_IM_MODULE=scim
pascal@1803 51 scim -d &
pascal@1803 52 ------------
pascal@1803 53 EOT
pascal@1803 54 }