wok-next view scim/receipt @ rev 9963

dahdi-tools: fix bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 18 15:55:36 2011 +0200 (2011-05-18)
parents 666fd56c3a0e
children 8e4c74abdf74
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+ gcc-lib-base"
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 while read file; do
18 [ -f done.$file ] && continue
19 echo "Apply $file..."
20 patch -p1 < $stuff/$file || return 1
21 touch done.$file
22 done <<EOT
23 scim-glibc-2.10.patch
24 EOT
25 ./configure --prefix=/usr \
26 --sysconfdir=/etc \
27 --with-x \
28 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
29 --mandir=/usr/share/man \
30 --infodir=/usr/share/info \
31 $CONFIGURE_ARGS &&
32 make -j 4 &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/pixmaps
40 cp -a $_pkg/etc $fs/
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/lib $fs/usr
43 cp -a $_pkg/usr/share/scim $fs/usr/share
44 cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
45 find $fs/usr/lib -name '*.la' -exec rm {} \;
46 find $fs/usr/lib -name '*.a' -exec rm {} \;
47 rm -rf $fs/usr/lib/pkgconfig
48 chmod +x $fs/usr/bin/scim-setup
49 }
51 post_install()
52 {
53 echo "Processing post-install commands..."
54 echo -n "Updating gtk.immodules... "
55 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
56 echo "done."
57 cat <<EOT
58 In order to start scim and use chinese after boot time,
59 add the following code to your autostart.sh(openbox):
60 ------------
61 export XMODIFIERS=@im=SCIM
62 export XIM="scim"
63 export XINPUT="xim"
64 export XIM_PROGRAM="scim -d"
65 export GTK_IM_MODULE=scim
66 export QT_IM_MODULE=scim
67 scim -d &
68 ------------
69 EOT
70 }
72 post_remove()
73 {
74 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
75 }