wok diff gtk+/receipt @ rev 87

Xorg proto + all new libs
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 02 22:24:15 2008 +0100 (2008-01-02)
parents
children d103e8bbb768
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gtk+/receipt	Wed Jan 02 22:24:15 2008 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gtk+"
     1.7 +VERSION="2.8.20"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="The GIMP Toolkit."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="cairo glib pango atk"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://www.gtk.org/"
    1.14 +WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +    cd $src
    1.20 +    ./configure --prefix=/usr --sysconfdir=/etc \
    1.21 +    --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
    1.22 +    $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/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin
    1.31 +	# Libs.
    1.32 +    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.33 +    cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0
    1.34 +    rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la
    1.35 +    # Locale.
    1.36 +    cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    1.37 +    cp -a $_pkg/usr/share/themes $fs/usr/share
    1.38 +    # Apps.
    1.39 +    cp  $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
    1.40 +    cp  $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
    1.41 +    cp  $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
    1.42 +    cp  $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
    1.43 +    # Config files.
    1.44 +    mkdir -p $fs/etc/gtk-2.0
    1.45 +    gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
    1.46 +    gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
    1.47 +    # Strip all files.
    1.48 +    strip --strip-all $fs/usr/bin/*
    1.49 +    strip --strip-unneeded $fs/usr/lib/*.so*
    1.50 +    strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/*
    1.51 +}
    1.52 +
    1.53 +# Pre and post install commands for Tazpkg.
    1.54 +post_install()
    1.55 +{
    1.56 +    local root
    1.57 +    root=$1
    1.58 +    echo "Processing post-install commands..."
    1.59 +    /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
    1.60 +    /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
    1.61 +}
    1.62 +SELF_INSTALL=1