wok view scim/receipt @ rev 18025

ppp/ppp.cgi: s/rtc/pstn/ , VPN submenu
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 05 12:04:20 2015 +0200 (2015-05-05)
parents d925fb3ac2bd
children 6fab3264ba87
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 LICENSE="LGPL2.1"
7 TARBALL="$PACKAGE-$VERSION.tar.gz"
8 WEB_SITE="http://www.scim-im.org/"
9 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
10 CONFIG_FILES="/etc/scim/config /etc/scim/global"
12 DEPENDS="gtk+ gcc-lib-base"
13 BUILD_DEPENDS="gtk+-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 while read file; do
20 [ -f done.$file ] && continue
21 echo "Apply $file..."
22 patch -p1 < $stuff/$file || return 1
23 touch done.$file
24 done <<EOT
25 scim-glibc-2.10.patch
26 EOT
27 ./configure --prefix=/usr \
28 --sysconfdir=/etc \
29 --with-x \
30 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
31 --mandir=/usr/share/man \
32 --infodir=/usr/share/info \
33 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
34 make $MAKEFLAGS &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/pixmaps
42 cp -a $install/etc $fs/
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/share/scim $fs/usr/share
46 cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
47 find $fs/usr/lib -name '*.la' -exec rm {} \;
48 find $fs/usr/lib -name '*.a' -exec rm {} \;
49 rm -rf $fs/usr/lib/pkgconfig
50 chmod +x $fs/usr/bin/scim-setup
51 }
53 post_install()
54 {
55 echo "Processing post-install commands..."
56 echo -n "Updating gtk.immodules... "
57 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
58 echo "done."
59 cat <<EOT
60 In order to start scim and use chinese after boot time,
61 add the following code to your autostart.sh(openbox):
62 ------------
63 export XMODIFIERS=@im=SCIM
64 export XIM="scim"
65 export XINPUT="xim"
66 export XIM_PROGRAM="scim -d"
67 export GTK_IM_MODULE=scim
68 export QT_IM_MODULE=scim
69 scim -d &
70 ------------
71 EOT
72 }
74 post_remove()
75 {
76 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
77 }