wok-6.x view scim/receipt @ rev 22288

linld: 8086 may load zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 13 15:08:02 2019 +0100 (2019-11-13)
parents 71849cee52f5
children 667a6ebad331
line source
1 # SliTaz package receipt.
3 PACKAGE="scim"
4 VERSION="1.4.18"
5 CATEGORY="utilities"
6 SHORT_DESC="Smart Common Input Method (SCIM)."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.scim-im.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/scim-im/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="gcc-lib-base gtk+"
15 BUILD_DEPENDS="autoconf automake gtk+-dev libtool"
16 CONFIG_FILES="/etc/scim/config /etc/scim/global"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # while read file; do
22 # [ -f done.$file ] && continue
23 # echo "Apply $file..."
24 # patch -p1 -i $stuff/$file || return 1
25 # touch done.$file
26 # done <<EOT
27 #scim-glibc-2.10.patch
28 #EOT
30 ./bootstrap &&
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --with-x \
35 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
36 --mandir=/usr/share/man \
37 --infodir=/usr/share/info \
38 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
39 make $MAKEFLAGS -j 1 &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/pixmaps
48 cp -a $install/etc $fs/
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib $fs/usr
51 cp -a $install/usr/share/scim $fs/usr/share
52 cp $install/usr/share/pixmaps/scim-setup.png \
53 $fs/usr/share/pixmaps
55 find $fs/usr/lib -name '*.la' -exec rm {} \;
56 find $fs/usr/lib -name '*.a' -exec rm {} \;
57 rm -rf $fs/usr/lib/pkgconfig
59 chmod +x $fs/usr/bin/scim-setup
60 }
62 post_install()
63 {
64 newline
65 action 'Updating gtk.immodules... '
66 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
67 status
69 cat <<EOT
70 In order to start scim and use chinese after boot time,
71 add the following code to your autostart.sh(openbox):
72 ------------
73 export XMODIFIERS=@im=SCIM
74 export XIM="scim"
75 export XINPUT="xim"
76 export XIM_PROGRAM="scim -d"
77 export GTK_IM_MODULE=scim
78 export QT_IM_MODULE=scim
79 scim -d &
80 ------------
81 EOT
82 }
84 post_remove()
85 {
86 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
87 }