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