wok-current annotate gtk+/receipt @ rev 836
Up: gtk+ (2.12.9)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 18 13:37:54 2008 +0200 (2008-05-18) |
parents | d5e75812e704 |
children | b13637d77d33 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@836 | 4 VERSION="2.12.9" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@312 | 8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype" |
pankso@836 | 9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev |
pankso@836 | 10 pkg-config xorg-dev xorg-dev-proto fontconfig-dev |
pankso@836 | 11 freetype-dev" |
pankso@22 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 13 WEB_SITE="http://www.gtk.org/" |
pankso@836 | 14 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/$TARBALL" |
pankso@22 | 15 |
pankso@22 | 16 # Rules to configure and make the package. |
pankso@22 | 17 compile_rules() |
pankso@22 | 18 { |
pankso@22 | 19 cd $src |
pankso@547 | 20 ./configure \ |
pankso@547 | 21 --prefix=/usr \ |
pankso@547 | 22 --sysconfdir=/etc \ |
pankso@547 | 23 --mandir=/usr/share/man \ |
pankso@547 | 24 --with-html-dir=/usr/share/doc \ |
pankso@547 | 25 $CONFIGURE_ARGS |
pankso@22 | 26 make |
pankso@22 | 27 make DESTDIR=$PWD/_pkg install |
pankso@22 | 28 } |
pankso@22 | 29 |
pankso@22 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 31 genpkg_rules() |
pankso@22 | 32 { |
pankso@547 | 33 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 34 |
pankso@22 | 35 # Libs. |
pankso@22 | 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@547 | 37 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@547 | 38 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 39 |
pankso@547 | 40 # Themes |
pankso@22 | 41 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 42 |
pankso@22 | 43 # Apps. |
pankso@22 | 44 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@22 | 45 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@22 | 46 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@22 | 47 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@836 | 48 |
pankso@22 | 49 # Config files. |
pankso@22 | 50 mkdir -p $fs/etc/gtk-2.0 |
pankso@22 | 51 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@22 | 52 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 53 } |
pankso@22 | 54 |
pankso@22 | 55 # Pre and post install commands for Tazpkg. |
pankso@22 | 56 post_install() |
pankso@22 | 57 { |
pankso@22 | 58 local root |
pankso@22 | 59 root=$1 |
pankso@22 | 60 echo "Processing post-install commands..." |
pankso@22 | 61 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@22 | 62 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@836 | 63 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@836 | 64 # clearlooks are updated) |
pankso@836 | 65 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then |
pankso@836 | 66 tazpkg get-install clearlooks --forced |
pankso@836 | 67 rm -rf $root/usr/lib/gtk-2.0/2.4.0 |
pankso@836 | 68 fi |
pankso@22 | 69 } |
pankso@22 | 70 SELF_INSTALL=1 |