wok-next view scim/receipt @ rev 21078

Update png and Xorg in dependencies.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 04:52:35 2018 +0200 (2018-12-22)
parents d5aab818505e
children 82b613cfd1e0
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 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 libpng libxcb libxml2 pango \
35 pcre pixman libx11 libxau libxdmcp libxext \
36 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 libpng-dev libtool \
44 libxcb-dev libxml2-dev pango-dev pcre-dev pixman-dev \
45 libx11-dev libxau-dev libxdmcp-dev libxext-dev \
46 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 }