wok annotate gtk+/receipt @ rev 726
Hardinfo: fix os
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 02 21:12:50 2008 +0000 (2008-05-02) |
parents | 2cce67662331 |
children | 8ac8ce140f78 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@547 | 4 VERSION="2.12.6" |
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@312 | 9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev |
pankso@386 | 10 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev" |
pankso@22 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 12 WEB_SITE="http://www.gtk.org/" |
pankso@547 | 13 WGET_URL="ftp://ftp.gtk.org/pub/gtk/2.12/$TARBALL" |
pankso@547 | 14 |
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@115 | 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@115 | 39 |
pankso@547 | 40 # Themes |
pankso@22 | 41 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@115 | 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@115 | 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@547 | 63 # Force reinstall of clearlooks them |
pankso@547 | 64 tazpkg get-install clearlooks --forced |
pankso@22 | 65 } |
pankso@22 | 66 SELF_INSTALL=1 |