wok-next view scim/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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="devel@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-dev automake intltool libtool doxygen coreutils-path \
15 libxslt docbook-xsl gtk2-dev xorg-libX11-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 ./bootstrap &&
21 ./configure \
22 --with-x \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make $MAKEFLAGS &&
26 make install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 scim)
32 copy @std
33 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk2 \
34 harfbuzz libffi libltdl liblzma libpng16 xorg-libxcb libxml2 pango \
35 pcre xorg-pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
36 xorg-libXrender zlib"
37 CONFIG_FILES="/etc/scim/config /etc/scim/global"
38 ;;
39 *-dev)
40 copy @dev
41 DEPENDS="scim atk-dev bzip2-dev cairo-dev fontconfig-dev \
42 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gtk2-dev \
43 harfbuzz-dev libffi-dev xz-dev libpng16-dev libtool \
44 xorg-libxcb-dev libxml2-dev pango-dev pcre-dev xorg-pixman-dev \
45 xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
46 xorg-libXrender-dev zlib-dev"
47 ;;
48 esac
49 }
51 post_install_scim() {
52 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
54 [ -n "$quiet" ] || cat <<EOT
55 In order to start scim and use chinese after boot time,
56 add the following code to your autostart.sh(openbox):
57 ------------
58 export XMODIFIERS=@im=SCIM
59 export XIM="scim"
60 export XINPUT="xim"
61 export XIM_PROGRAM="scim -d"
62 export GTK_IM_MODULE=scim
63 export QT_IM_MODULE=scim
64 scim -d &
65 ------------
66 EOT
67 }
69 post_remove_scim() {
70 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
71 }