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