wok-6.x annotate scim/receipt @ rev 19989
Add knot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 02 18:38:44 2017 +0200 (2017-07-02) |
parents | fb330dab8442 |
children | ff106c3028e0 |
rev | line source |
---|---|
pascal@1651 | 1 PACKAGE="scim" |
rocky@3531 | 2 VERSION="1.4.9" |
rocky@3531 | 3 CATEGORY="utilities" |
rocky@3531 | 4 SHORT_DESC="Smart Common Input Method (SCIM)." |
rocky@3531 | 5 MAINTAINER="rocky@slitaz.org" |
pascal@15131 | 6 LICENSE="LGPL2.1" |
pascal@1651 | 7 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1651 | 8 WEB_SITE="http://www.scim-im.org/" |
pascal@1651 | 9 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rocky@3531 | 10 CONFIG_FILES="/etc/scim/config /etc/scim/global" |
pascal@1651 | 11 |
pascal@15131 | 12 DEPENDS="gtk+ gcc-lib-base" |
pascal@15131 | 13 BUILD_DEPENDS="gtk+-dev" |
pascal@15131 | 14 |
pascal@1651 | 15 # Rules to configure and make the package. |
pascal@1651 | 16 compile_rules() |
pascal@1651 | 17 { |
al@18741 | 18 while read file; do |
al@18741 | 19 [ -f done.$file ] && continue |
al@18741 | 20 echo "Apply $file..." |
al@18741 | 21 patch -p1 -i $stuff/$file || return 1 |
al@18741 | 22 touch done.$file |
al@18741 | 23 done <<EOT |
rocky@3573 | 24 scim-glibc-2.10.patch |
rocky@3573 | 25 EOT |
al@18741 | 26 |
al@18741 | 27 ./configure \ |
al@18741 | 28 --prefix=/usr \ |
al@18741 | 29 --sysconfdir=/etc \ |
al@18741 | 30 --with-x \ |
al@18741 | 31 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ |
al@18741 | 32 --mandir=/usr/share/man \ |
al@18741 | 33 --infodir=/usr/share/info \ |
al@18741 | 34 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES && |
al@18741 | 35 make $MAKEFLAGS && |
al@18741 | 36 make DESTDIR=$DESTDIR install |
pascal@1651 | 37 } |
pascal@1651 | 38 |
pascal@1651 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1651 | 40 genpkg_rules() |
pascal@1651 | 41 { |
al@18741 | 42 mkdir -p $fs/usr/share/pixmaps |
al@18741 | 43 cp -a $install/etc $fs/ |
al@18741 | 44 cp -a $install/usr/bin $fs/usr |
al@18741 | 45 cp -a $install/usr/lib $fs/usr |
al@18741 | 46 cp -a $install/usr/share/scim $fs/usr/share |
al@18741 | 47 cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps |
al@18741 | 48 find $fs/usr/lib -name '*.la' -exec rm {} \; |
al@18741 | 49 find $fs/usr/lib -name '*.a' -exec rm {} \; |
al@18741 | 50 rm -rf $fs/usr/lib/pkgconfig |
al@18741 | 51 chmod +x $fs/usr/bin/scim-setup |
pascal@1651 | 52 } |
pascal@1651 | 53 |
pascal@1651 | 54 post_install() |
pascal@1651 | 55 { |
al@18741 | 56 newline |
al@18741 | 57 action 'Updating gtk.immodules... ' |
al@18741 | 58 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
al@18741 | 59 status |
al@18741 | 60 |
rocky@3531 | 61 cat <<EOT |
rocky@3531 | 62 In order to start scim and use chinese after boot time, |
rocky@4045 | 63 add the following code to your autostart.sh(openbox): |
rocky@3531 | 64 ------------ |
rocky@3531 | 65 export XMODIFIERS=@im=SCIM |
rocky@3531 | 66 export XIM="scim" |
rocky@3531 | 67 export XINPUT="xim" |
rocky@3531 | 68 export XIM_PROGRAM="scim -d" |
rocky@3531 | 69 export GTK_IM_MODULE=scim |
rocky@3531 | 70 export QT_IM_MODULE=scim |
rocky@3531 | 71 scim -d & |
rocky@3531 | 72 ------------ |
rocky@3531 | 73 EOT |
pascal@1651 | 74 } |
pascal@1651 | 75 |
pascal@1651 | 76 post_remove() |
pascal@1651 | 77 { |
al@18741 | 78 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 79 } |