wok-6.x annotate gtk+/receipt @ rev 4494
Up: ecofont (2.0)
author | Mallory Mollo <mallory@sweetpeople.org> |
---|---|
date | Thu Nov 19 10:39:58 2009 +0100 (2009-11-19) |
parents | 303e30733e97 |
children | 9f19aee613be |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
rcx@3743 | 4 VERSION="2.16.5" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
jozee@3751 | 8 DEPENDS="glibc-base expat libxcb xcb-util zlib \ |
rcx@3743 | 9 glib cairo pango atk libpng jpeg tiff fontconfig freetype pixman libgio \ |
rcx@3743 | 10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ |
rcx@3743 | 11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender" |
pankso@3426 | 12 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \ |
pankso@3426 | 13 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \ |
rcx@3743 | 14 tiff-dev libgio-dev xorg-libXdamage zlib-dev xorg-xextproto expat-dev cups-dev" |
jozee@3751 | 15 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
pankso@22 | 16 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 17 WEB_SITE="http://www.gtk.org/" |
pankso@3068 | 18 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL" |
pascal@1634 | 19 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 20 |
pankso@22 | 21 # Rules to configure and make the package. |
pankso@22 | 22 compile_rules() |
pankso@22 | 23 { |
pankso@22 | 24 cd $src |
pankso@547 | 25 ./configure \ |
pankso@547 | 26 --prefix=/usr \ |
pankso@547 | 27 --sysconfdir=/etc \ |
pankso@547 | 28 --mandir=/usr/share/man \ |
pankso@547 | 29 --with-html-dir=/usr/share/doc \ |
pankso@2002 | 30 --without-libjasper \ |
pascal@2430 | 31 $CONFIGURE_ARGS && |
pascal@2430 | 32 make && |
pankso@22 | 33 make DESTDIR=$PWD/_pkg install |
pankso@22 | 34 } |
pankso@22 | 35 |
pankso@22 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 37 genpkg_rules() |
pankso@22 | 38 { |
pankso@547 | 39 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 40 |
pankso@22 | 41 # Libs. |
pankso@2002 | 42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 43 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 44 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 45 |
pankso@2002 | 46 # Themes |
pankso@2002 | 47 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 48 |
pankso@2002 | 49 # Apps. |
pankso@2002 | 50 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 51 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@2002 | 52 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@2002 | 53 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
rcx@3620 | 54 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin |
pankso@836 | 55 |
pankso@2002 | 56 # Config files. |
pankso@2002 | 57 mkdir -p $fs/etc/gtk-2.0 |
pankso@2002 | 58 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 59 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 60 } |
pankso@22 | 61 |
pankso@22 | 62 # Pre and post install commands for Tazpkg. |
pankso@22 | 63 post_install() |
pankso@22 | 64 { |
pankso@2002 | 65 local root |
pankso@2002 | 66 root=$1 |
pankso@2002 | 67 echo "Processing post-install commands..." |
pankso@2002 | 68 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 69 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@2002 | 70 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 71 # clearlooks are updated) |
pankso@2002 | 72 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then |
pankso@2002 | 73 tazpkg get-install clearlooks --forced |
pankso@2002 | 74 rm -rf $root/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 75 fi |
pankso@22 | 76 } |
pankso@22 | 77 SELF_INSTALL=1 |