wok view scim/receipt @ rev 19119

vlc (hack build for time being)
author Paul Issott <paul@slitaz.org>
date Sun May 08 09:53:06 2016 +0100 (2016-05-08)
parents fb330dab8442
children ff106c3028e0
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 while read file; do
19 [ -f done.$file ] && continue
20 echo "Apply $file..."
21 patch -p1 -i $stuff/$file || return 1
22 touch done.$file
23 done <<EOT
24 scim-glibc-2.10.patch
25 EOT
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --with-x \
31 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
32 --mandir=/usr/share/man \
33 --infodir=/usr/share/info \
34 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
35 make $MAKEFLAGS &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/pixmaps
43 cp -a $install/etc $fs/
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/share/scim $fs/usr/share
47 cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
48 find $fs/usr/lib -name '*.la' -exec rm {} \;
49 find $fs/usr/lib -name '*.a' -exec rm {} \;
50 rm -rf $fs/usr/lib/pkgconfig
51 chmod +x $fs/usr/bin/scim-setup
52 }
54 post_install()
55 {
56 newline
57 action 'Updating gtk.immodules... '
58 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
59 status
61 cat <<EOT
62 In order to start scim and use chinese after boot time,
63 add the following code to your autostart.sh(openbox):
64 ------------
65 export XMODIFIERS=@im=SCIM
66 export XIM="scim"
67 export XINPUT="xim"
68 export XIM_PROGRAM="scim -d"
69 export GTK_IM_MODULE=scim
70 export QT_IM_MODULE=scim
71 scim -d &
72 ------------
73 EOT
74 }
76 post_remove()
77 {
78 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
79 }