wok-next annotate scim/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | dd145c435e4b |
children | f48456621a9d |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
al@19741 | 2 |
pascal@1651 | 3 PACKAGE="scim" |
al@19741 | 4 VERSION="1.4.17" |
rocky@3531 | 5 CATEGORY="utilities" |
al@19741 | 6 SHORT_DESC="Smart Common Input Method" |
rocky@3531 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15131 | 8 LICENSE="LGPL2.1" |
al@19741 | 9 WEB_SITE="https://github.com/scim-im/scim" |
al@19741 | 10 |
pascal@1651 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19741 | 12 WGET_URL="https://github.com/scim-im/scim/archive/$TARBALL" |
pascal@1651 | 13 |
al@19741 | 14 BUILD_DEPENDS="gettext automake intltool libtool doxygen coreutils-path \ |
al@19741 | 15 libxslt docbook-xsl gtk+-dev xorg-libX11-dev" |
al@19741 | 16 SPLIT="scim-dev" |
pascal@15131 | 17 |
al@20534 | 18 compile_rules() { |
al@19741 | 19 ./bootstrap && |
al@18741 | 20 |
al@18741 | 21 ./configure \ |
al@18741 | 22 --with-x \ |
al@19741 | 23 $CONFIGURE_ARGS && |
al@20534 | 24 fix libtool && |
al@18741 | 25 make $MAKEFLAGS && |
al@19741 | 26 make install |
pascal@1651 | 27 } |
pascal@1651 | 28 |
al@20534 | 29 genpkg_rules() { |
al@19741 | 30 case $PACKAGE in |
al@19741 | 31 scim) |
al@19741 | 32 copy @std |
al@19741 | 33 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \ |
al@20454 | 34 harfbuzz libffi libltdl liblzma libpng16 xorg-libxcb libxml2 pango \ |
al@20446 | 35 pcre xorg-pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \ |
al@19741 | 36 xorg-libXrender zlib" |
al@19741 | 37 CONFIG_FILES="/etc/scim/config /etc/scim/global" |
al@19741 | 38 ;; |
al@19741 | 39 *-dev) |
al@19741 | 40 copy @dev |
al@19741 | 41 DEPENDS="scim atk-dev bzip2-dev cairo-dev fontconfig-dev \ |
al@19741 | 42 freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gtk+-dev \ |
al@20454 | 43 harfbuzz-dev libffi-dev xz-dev libpng16-dev libtool \ |
al@20447 | 44 xorg-libxcb-dev libxml2-dev pango-dev pcre-dev xorg-pixman-dev \ |
al@19741 | 45 xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \ |
al@19741 | 46 xorg-libXrender-dev zlib-dev" |
al@19741 | 47 ;; |
al@19741 | 48 esac |
pascal@1651 | 49 } |
pascal@1651 | 50 |
al@20534 | 51 post_install_scim() { |
al@18741 | 52 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
al@18741 | 53 |
al@19741 | 54 [ -n "$quiet" ] || cat <<EOT |
rocky@3531 | 55 In order to start scim and use chinese after boot time, |
rocky@4045 | 56 add the following code to your autostart.sh(openbox): |
rocky@3531 | 57 ------------ |
rocky@3531 | 58 export XMODIFIERS=@im=SCIM |
rocky@3531 | 59 export XIM="scim" |
rocky@3531 | 60 export XINPUT="xim" |
rocky@3531 | 61 export XIM_PROGRAM="scim -d" |
rocky@3531 | 62 export GTK_IM_MODULE=scim |
rocky@3531 | 63 export QT_IM_MODULE=scim |
rocky@3531 | 64 scim -d & |
rocky@3531 | 65 ------------ |
rocky@3531 | 66 EOT |
pascal@1651 | 67 } |
pascal@1651 | 68 |
al@20534 | 69 post_remove_scim() { |
al@19741 | 70 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
pascal@1651 | 71 } |