wok annotate scim/receipt @ rev 2746
Add Uget (urlgfe) tiny GTK download manager
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 26 00:42:39 2009 +0200 (2009-04-26) |
parents | 93342d3d3ff1 |
children | 8b3ae6a93757 |
rev | line source |
---|---|
pascal@1651 | 1 PACKAGE="scim" |
pascal@1651 | 2 VERSION="1.4.7" |
pascal@1651 | 3 CATEGORY="x-window" |
pascal@1651 | 4 SHORT_DESC="Smart Common Input Method (SCIM)" |
pascal@1651 | 5 MAINTAINER="slitaz@pworld.otherinbox.com" |
pascal@2524 | 6 DEPENDS="gtk+ xorg-libXdamage" |
pascal@1651 | 7 BUILD_DEPENDS="xorg-dev xorg-dev-proto gtk+-dev" |
pascal@1651 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1651 | 9 WEB_SITE="http://www.scim-im.org/" |
pascal@1651 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1651 | 11 |
pascal@1651 | 12 # Rules to configure and make the package. |
pascal@1651 | 13 compile_rules() |
pascal@1651 | 14 { |
pascal@1651 | 15 cd $src |
pascal@1651 | 16 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1651 | 17 --sysconfdir=/etc --with-x \ |
pascal@1651 | 18 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ |
pascal@1651 | 19 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1651 | 20 make && |
pascal@1651 | 21 make DESTDIR=$PWD/_pkg install |
pascal@1651 | 22 } |
pascal@1651 | 23 |
pascal@1651 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1651 | 25 genpkg_rules() |
pascal@1651 | 26 { |
pascal@1651 | 27 mkdir -p $fs/usr |
pascal@1651 | 28 cp -a $_pkg/usr/bin $fs/usr |
pascal@1651 | 29 strip -s $fs/usr/bin/* |
pascal@1651 | 30 cp -a $_pkg/usr/lib $fs/usr |
pascal@1651 | 31 mkdir -p $fs/usr/share |
pascal@1651 | 32 cp -a $_pkg/usr/share/scim $fs/usr/share |
pascal@1651 | 33 find $fs/usr/lib -name '*.la' -exec rm {} \; |
pascal@1651 | 34 find $fs/usr/lib -name '*.a' -exec rm {} \; |
pascal@1651 | 35 find $fs/usr/lib -name '*.so' -exec strip -s {} \; |
pascal@1651 | 36 mkdir -p $fs/usr/share/pixmaps |
pascal@1651 | 37 cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps |
pascal@1651 | 38 rm -rf $fs/usr/lib/pkgconfig |
pascal@1651 | 39 chmod +x $fs/usr/bin/* |
pascal@1651 | 40 } |
pascal@1651 | 41 |
pascal@1651 | 42 post_install() |
pascal@1651 | 43 { |
pascal@1651 | 44 echo "Processing post-install commands..." |
pascal@1651 | 45 echo -n "updating gtk.immodules... " |
pascal@1651 | 46 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 47 echo "done." |
pascal@1651 | 48 } |
pascal@1651 | 49 |
pascal@1651 | 50 post_remove() |
pascal@1651 | 51 { |
pascal@1651 | 52 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 53 } |