wok-stable view scim/receipt @ rev 3563
tag some a* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jun 24 18:47:14 2009 +0000 (2009-06-24) |
parents | 0b02072d7f48 |
children | 1794ce625358 |
line source
1 PACKAGE="scim"
2 VERSION="1.4.9"
3 CATEGORY="utilities"
4 SHORT_DESC="Smart Common Input Method (SCIM)."
5 MAINTAINER="rocky@slitaz.org"
6 DEPENDS="gtk+"
7 BUILD_DEPENDS="gtk+-dev"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.scim-im.org/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 CONFIG_FILES="/etc/scim/config /etc/scim/global"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 patch -p1 < ../stuff/scim-glibc-2.10.patch &&
18 ./configure --prefix=/usr \
19 --sysconfdir=/etc \
20 --with-x \
21 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
22 --mandir=/usr/share/man \
23 --infodir=/usr/share/info \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/pixmaps
33 cp -a $_pkg/etc $fs/
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/lib $fs/usr
36 cp -a $_pkg/usr/share/scim $fs/usr/share
37 cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
38 find $fs/usr/lib -name '*.la' -exec rm {} \;
39 find $fs/usr/lib -name '*.a' -exec rm {} \;
40 rm -rf $fs/usr/lib/pkgconfig
41 chmod +x $fs/usr/bin/scim-setup
42 }
44 post_install()
45 {
46 echo "Processing post-install commands..."
47 echo -n "Updating gtk.immodules... "
48 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
49 echo "done."
50 cat <<EOT
51 In order to start scim and use chinese after boot time,
52 add the following code to your ~/.profile file:
53 ------------
54 export XMODIFIERS=@im=SCIM
55 export XIM="scim"
56 export XINPUT="xim"
57 export XIM_PROGRAM="scim -d"
58 export GTK_IM_MODULE=scim
59 export QT_IM_MODULE=scim
60 scim -d &
61 ------------
62 EOT
63 }
65 post_remove()
66 {
67 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
68 }