wok-next diff scim-pinyin/receipt @ rev 2287
*-pam: remove duplicate stuff/
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 21 21:46:09 2009 +0000 (2009-02-21) |
parents | |
children | 0b02072d7f48 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/scim-pinyin/receipt Sat Feb 21 21:46:09 2009 +0000 1.3 @@ -0,0 +1,54 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="scim-pinyin" 1.7 +VERSION="0.5.91" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="Chinese PinYin input for SCIM" 1.10 +MAINTAINER="slitaz@pworld.otherinbox.com" 1.11 +DEPENDS="scim" 1.12 +BUILD_DEPENDS="scim scim-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.scim-im.org/" 1.15 +#WGET_URL="$SF_MIRROR/scim/$TARBALL" 1.16 +WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + export PKG_CONFIG_PATH=/usr/pkgconfig 1.23 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.24 + --mandir=/usr/share/man --disable-static $CONFIGURE_ARGS && 1.25 + make && 1.26 + make DESTDIR=$PWD/_pkg install 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/share 1.33 + cp -a $_pkg/usr/lib $fs/usr 1.34 + cp -a $_pkg/usr/share/scim $fs/usr/share 1.35 + 1.36 + # say goodbye to .la files 1.37 + find $fs/usr/lib -name '*.la' -exec rm {} \; 1.38 + find $fs/usr/lib -name '*.so' -exec strip -s {} \; 1.39 +} 1.40 + 1.41 +# Pre and post install commands for Tazpkg. 1.42 +post_install() 1.43 +{ 1.44 + cat <<EOT 1.45 +------------ 1.46 +In order to start scim and use chinese after boot time, 1.47 +add the following code to your ~/.profile file: 1.48 +export XMODIFIERS=@im=SCIM 1.49 +export XIM="scim" 1.50 +export XINPUT="xim" 1.51 +export XIM_PROGRAM="scim -d" 1.52 +export GTK_IM_MODULE=scim 1.53 +export QT_IM_MODULE=scim 1.54 +scim -d & 1.55 +------------ 1.56 +EOT 1.57 +}