wok-next annotate gtk+/receipt @ rev 22
Add : GTK+ with libs (atk, glib, etc)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 13:47:26 2007 +0100 (2007-12-18) |
parents | |
children | d103e8bbb768 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@22 | 4 VERSION="2.8.20" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@22 | 8 DEPENDS="cairo glib pango atk" |
pankso@22 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 10 WEB_SITE="http://www.gtk.org/" |
pankso@22 | 11 WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL" |
pankso@22 | 12 |
pankso@22 | 13 # Rules to configure and make the package. |
pankso@22 | 14 compile_rules() |
pankso@22 | 15 { |
pankso@22 | 16 cd $src |
pankso@22 | 17 ./configure --prefix=/usr --sysconfdir=/etc \ |
pankso@22 | 18 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \ |
pankso@22 | 19 $CONFIGURE_ARGS |
pankso@22 | 20 make |
pankso@22 | 21 make DESTDIR=$PWD/_pkg install |
pankso@22 | 22 } |
pankso@22 | 23 |
pankso@22 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 25 genpkg_rules() |
pankso@22 | 26 { |
pankso@22 | 27 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin |
pankso@22 | 28 # Libs. |
pankso@22 | 29 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 30 cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0 |
pankso@22 | 31 rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la |
pankso@22 | 32 # Locale. |
pankso@22 | 33 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@22 | 34 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@22 | 35 # Apps. |
pankso@22 | 36 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@22 | 37 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@22 | 38 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@22 | 39 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@22 | 40 # Config files. |
pankso@22 | 41 mkdir -p $fs/etc/gtk-2.0 |
pankso@22 | 42 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@22 | 43 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 44 # Strip all files. |
pankso@22 | 45 strip --strip-all $fs/usr/bin/* |
pankso@22 | 46 strip --strip-unneeded $fs/usr/lib/*.so* |
pankso@22 | 47 strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/* |
pankso@22 | 48 } |
pankso@22 | 49 |
pankso@22 | 50 # Pre and post install commands for Tazpkg. |
pankso@22 | 51 post_install() |
pankso@22 | 52 { |
pankso@22 | 53 local root |
pankso@22 | 54 root=$1 |
pankso@22 | 55 echo "Processing post-install commands..." |
pankso@22 | 56 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@22 | 57 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 58 } |
pankso@22 | 59 SELF_INSTALL=1 |