wok-current rev 1651

Add scim
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 08 13:39:01 2008 +0000 (2008-11-08)
parents dfadaaf136ef
children fe7a7806934d
files scim-dev/receipt scim/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scim-dev/receipt	Sat Nov 08 13:39:01 2008 +0000
     1.3 @@ -0,0 +1,18 @@
     1.4 +PACKAGE="scim-dev"
     1.5 +VERSION="1.4.7"
     1.6 +CATEGORY="development"
     1.7 +SHORT_DESC="Smart Common Input Method (SCIM) development files."
     1.8 +MAINTAINER="slitaz@pworld.otherinbox.com"
     1.9 +WEB_SITE="http://www.scim-im.org/"
    1.10 +WANTED="scim"
    1.11 +
    1.12 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.13 +genpkg_rules()
    1.14 +{
    1.15 +    mkdir -p $fs/usr
    1.16 +    cp -a $_pkg/usr/include $fs/usr
    1.17 +    cp -a $_pkg/usr/lib $fs/usr
    1.18 +    find $fs/usr/lib -type f -not -name '*a' -exec rm {} \;
    1.19 +    find $fs/usr/lib -type l -exec rm {} \;
    1.20 +    cp -a $_pkg/usr/lib/pkgconfig $fs/usr
    1.21 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/scim/receipt	Sat Nov 08 13:39:01 2008 +0000
     2.3 @@ -0,0 +1,53 @@
     2.4 +PACKAGE="scim"
     2.5 +VERSION="1.4.7"
     2.6 +CATEGORY="x-window"
     2.7 +SHORT_DESC="Smart Common Input Method (SCIM)"
     2.8 +MAINTAINER="slitaz@pworld.otherinbox.com"
     2.9 +DEPENDS="gtk+"
    2.10 +BUILD_DEPENDS="xorg-dev xorg-dev-proto gtk+-dev"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 +WEB_SITE="http://www.scim-im.org/"
    2.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.14 +
    2.15 +# Rules to configure and make the package.
    2.16 +compile_rules()
    2.17 +{
    2.18 +    cd $src
    2.19 +    ./configure --prefix=/usr --infodir=/usr/share/info \
    2.20 +    --sysconfdir=/etc --with-x \
    2.21 +    --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
    2.22 +    --mandir=/usr/share/man $CONFIGURE_ARGS &&
    2.23 +    make &&
    2.24 +    make DESTDIR=$PWD/_pkg install
    2.25 +}
    2.26 +
    2.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.28 +genpkg_rules()
    2.29 +{
    2.30 +    mkdir -p $fs/usr
    2.31 +    cp -a $_pkg/usr/bin $fs/usr
    2.32 +    strip -s $fs/usr/bin/*
    2.33 +    cp -a $_pkg/usr/lib $fs/usr
    2.34 +    mkdir -p $fs/usr/share
    2.35 +    cp -a $_pkg/usr/share/scim $fs/usr/share
    2.36 +    find $fs/usr/lib -name '*.la' -exec rm {} \;
    2.37 +    find $fs/usr/lib -name '*.a' -exec rm {} \;
    2.38 +    find $fs/usr/lib -name '*.so' -exec strip -s {} \;
    2.39 +    mkdir -p $fs/usr/share/pixmaps
    2.40 +    cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
    2.41 +    rm -rf $fs/usr/lib/pkgconfig
    2.42 +    chmod +x $fs/usr/bin/*
    2.43 +}
    2.44 +
    2.45 +post_install()
    2.46 +{
    2.47 +    echo "Processing post-install commands..."
    2.48 +    echo -n "updating gtk.immodules... "
    2.49 +    /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
    2.50 +    echo "done."
    2.51 +}
    2.52 +
    2.53 +post_remove()
    2.54 +{
    2.55 +    /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
    2.56 +}