wok-next view scim/receipt @ rev 19990
lighttpd: add missing SPLIT
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 20 08:05:51 2017 +0200 (2017-10-20) |
parents | 9278a60d6895 |
children | bce36a298f1e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="scim"
4 VERSION="1.4.17"
5 CATEGORY="utilities"
6 SHORT_DESC="Smart Common Input Method"
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/scim-im/scim"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/scim-im/scim/archive/$TARBALL"
14 BUILD_DEPENDS="gettext automake intltool libtool doxygen coreutils-path \
15 libxslt docbook-xsl gtk+-dev xorg-libX11-dev"
16 SPLIT="scim-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./bootstrap &&
23 ./configure \
24 --sysconfdir=/etc \
25 --with-x \
26 $CONFIGURE_ARGS &&
27 make $MAKEFLAGS &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 scim)
36 copy @std
37 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \
38 harfbuzz libffi libltdl liblzma libpng libxcb libxml2 pango \
39 pcre pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
40 xorg-libXrender zlib"
41 CONFIG_FILES="/etc/scim/config /etc/scim/global"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="scim atk-dev bzip2-dev cairo-dev fontconfig-dev \
46 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gtk+-dev \
47 harfbuzz-dev libffi-dev liblzma-dev libpng-dev libtool \
48 libxcb-dev libxml2-dev pango-dev pcre-dev pixman-dev \
49 xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
50 xorg-libXrender-dev zlib-dev"
51 ;;
52 esac
53 }
55 post_install_scim()
56 {
57 [ -n "$quiet" ] || newline
58 action 'Updating gtk.immodules... '
59 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
60 status
62 [ -n "$quiet" ] || cat <<EOT
63 In order to start scim and use chinese after boot time,
64 add the following code to your autostart.sh(openbox):
65 ------------
66 export XMODIFIERS=@im=SCIM
67 export XIM="scim"
68 export XINPUT="xim"
69 export XIM_PROGRAM="scim -d"
70 export GTK_IM_MODULE=scim
71 export QT_IM_MODULE=scim
72 scim -d &
73 ------------
74 EOT
75 }
77 post_remove_scim()
78 {
79 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
80 }