wok view scim/receipt @ rev 25622
Up bzip3 (1.3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 31 10:51:14 2023 +0000 (15 months ago) |
parents | 5ea0ce1cecc0 |
children | 98eb7c7288b5 |
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="https://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="gtk+-dev libtool xz gettext-tools"
16 CONFIG_FILES="/etc/scim/config /etc/scim/global"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # while read file; do
29 # [ -f done.$file ] && continue
30 # echo "Apply $file..."
31 # patch -p1 -i $stuff/$file || return 1
32 # touch done.$file
33 # done <<EOT
34 #scim-glibc-2.10.patch
35 #EOT
37 ./bootstrap &&
38 ./configure \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --with-x \
42 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
43 --mandir=/usr/share/man \
44 --infodir=/usr/share/info \
45 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
46 make $MAKEFLAGS -j 1 &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share/pixmaps
55 cp -a $install/etc $fs/
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/lib $fs/usr
58 cp -a $install/usr/share/scim $fs/usr/share
59 cp $install/usr/share/pixmaps/scim-setup.png \
60 $fs/usr/share/pixmaps
62 find $fs/usr/lib -name '*.la' -exec rm {} \;
63 find $fs/usr/lib -name '*.a' -exec rm {} \;
64 rm -rf $fs/usr/lib/pkgconfig
66 chmod +x $fs/usr/bin/scim-setup
67 }
69 post_install()
70 {
71 newline
72 action 'Updating gtk.immodules... '
73 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
74 status
76 cat <<EOT
77 In order to start scim and use chinese after boot time,
78 add the following code to your autostart.sh(openbox):
79 ------------
80 export XMODIFIERS=@im=SCIM
81 export XIM="scim"
82 export XINPUT="xim"
83 export XIM_PROGRAM="scim -d"
84 export GTK_IM_MODULE=scim
85 export QT_IM_MODULE=scim
86 scim -d &
87 ------------
88 EOT
89 }
91 post_remove()
92 {
93 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
94 }