wok-6.x diff scim/receipt @ rev 2306

lighttpd: backup config files
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 24 23:20:43 2009 +0100 (2009-02-24)
parents
children 0b02072d7f48
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scim/receipt	Tue Feb 24 23:20:43 2009 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +PACKAGE="scim"
     1.5 +VERSION="1.4.7"
     1.6 +CATEGORY="x-window"
     1.7 +SHORT_DESC="Smart Common Input Method (SCIM)"
     1.8 +MAINTAINER="slitaz@pworld.otherinbox.com"
     1.9 +DEPENDS="gtk+"
    1.10 +BUILD_DEPENDS="xorg-dev xorg-dev-proto gtk+-dev"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.scim-im.org/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +    cd $src
    1.19 +    ./configure --prefix=/usr --infodir=/usr/share/info \
    1.20 +    --sysconfdir=/etc --with-x \
    1.21 +    --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
    1.22 +    --mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.23 +    make &&
    1.24 +    make DESTDIR=$PWD/_pkg install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +    mkdir -p $fs/usr
    1.31 +    cp -a $_pkg/usr/bin $fs/usr
    1.32 +    strip -s $fs/usr/bin/*
    1.33 +    cp -a $_pkg/usr/lib $fs/usr
    1.34 +    mkdir -p $fs/usr/share
    1.35 +    cp -a $_pkg/usr/share/scim $fs/usr/share
    1.36 +    find $fs/usr/lib -name '*.la' -exec rm {} \;
    1.37 +    find $fs/usr/lib -name '*.a' -exec rm {} \;
    1.38 +    find $fs/usr/lib -name '*.so' -exec strip -s {} \;
    1.39 +    mkdir -p $fs/usr/share/pixmaps
    1.40 +    cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
    1.41 +    rm -rf $fs/usr/lib/pkgconfig
    1.42 +    chmod +x $fs/usr/bin/*
    1.43 +}
    1.44 +
    1.45 +post_install()
    1.46 +{
    1.47 +    echo "Processing post-install commands..."
    1.48 +    echo -n "updating gtk.immodules... "
    1.49 +    /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
    1.50 +    echo "done."
    1.51 +}
    1.52 +
    1.53 +post_remove()
    1.54 +{
    1.55 +    /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
    1.56 +}