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