wok annotate scim/receipt @ rev 24999
updated nmap (7.80 -> 7.92)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 13:38:34 2022 +0100 (2022-05-16) |
parents | 7bee98929640 |
children | 0262035dc1e7 |
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+" |
pascal@23046 | 15 BUILD_DEPENDS="gtk+-dev libtool xz gettext-tools" |
rocky@3531 | 16 CONFIG_FILES="/etc/scim/config /etc/scim/global" |
pascal@1651 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@1651 | 24 # Rules to configure and make the package. |
pascal@1651 | 25 compile_rules() |
pascal@1651 | 26 { |
Hans-G?nter@21209 | 27 # while read file; do |
Hans-G?nter@21209 | 28 # [ -f done.$file ] && continue |
Hans-G?nter@21209 | 29 # echo "Apply $file..." |
Hans-G?nter@21209 | 30 # patch -p1 -i $stuff/$file || return 1 |
Hans-G?nter@21209 | 31 # touch done.$file |
Hans-G?nter@21209 | 32 # done <<EOT |
Hans-G?nter@21209 | 33 #scim-glibc-2.10.patch |
Hans-G?nter@21209 | 34 #EOT |
al@18741 | 35 |
Hans-G?nter@21209 | 36 ./bootstrap && |
Hans-G?nter@21209 | 37 ./configure \ |
Hans-G?nter@21209 | 38 --prefix=/usr \ |
Hans-G?nter@21209 | 39 --sysconfdir=/etc \ |
Hans-G?nter@21209 | 40 --with-x \ |
al@18741 | 41 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ |
Hans-G?nter@21209 | 42 --mandir=/usr/share/man \ |
Hans-G?nter@21209 | 43 --infodir=/usr/share/info \ |
al@18741 | 44 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES && |
Hans-G?nter@21209 | 45 make $MAKEFLAGS -j 1 && |
al@18741 | 46 make DESTDIR=$DESTDIR install |
pascal@1651 | 47 } |
pascal@1651 | 48 |
pascal@1651 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1651 | 50 genpkg_rules() |
pascal@1651 | 51 { |
al@18741 | 52 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21209 | 53 |
Hans-G?nter@21209 | 54 cp -a $install/etc $fs/ |
Hans-G?nter@21209 | 55 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21209 | 56 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21209 | 57 cp -a $install/usr/share/scim $fs/usr/share |
Hans-G?nter@21209 | 58 cp $install/usr/share/pixmaps/scim-setup.png \ |
Hans-G?nter@21209 | 59 $fs/usr/share/pixmaps |
Hans-G?nter@21209 | 60 |
al@18741 | 61 find $fs/usr/lib -name '*.la' -exec rm {} \; |
al@18741 | 62 find $fs/usr/lib -name '*.a' -exec rm {} \; |
al@18741 | 63 rm -rf $fs/usr/lib/pkgconfig |
Hans-G?nter@21209 | 64 |
al@18741 | 65 chmod +x $fs/usr/bin/scim-setup |
pascal@1651 | 66 } |
pascal@1651 | 67 |
pascal@1651 | 68 post_install() |
pascal@1651 | 69 { |
al@18741 | 70 newline |
al@18741 | 71 action 'Updating gtk.immodules... ' |
al@18741 | 72 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
al@18741 | 73 status |
al@18741 | 74 |
rocky@3531 | 75 cat <<EOT |
rocky@3531 | 76 In order to start scim and use chinese after boot time, |
rocky@4045 | 77 add the following code to your autostart.sh(openbox): |
rocky@3531 | 78 ------------ |
rocky@3531 | 79 export XMODIFIERS=@im=SCIM |
rocky@3531 | 80 export XIM="scim" |
rocky@3531 | 81 export XINPUT="xim" |
rocky@3531 | 82 export XIM_PROGRAM="scim -d" |
rocky@3531 | 83 export GTK_IM_MODULE=scim |
rocky@3531 | 84 export QT_IM_MODULE=scim |
rocky@3531 | 85 scim -d & |
rocky@3531 | 86 ------------ |
rocky@3531 | 87 EOT |
pascal@1651 | 88 } |
pascal@1651 | 89 |
pascal@1651 | 90 post_remove() |
pascal@1651 | 91 { |
al@18741 | 92 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 93 } |