wok annotate gtk+/receipt @ rev 9993
hal-dev: add missing deps
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu May 19 00:45:38 2011 +0200 (2011-05-19) |
parents | 46b226e57592 |
children | dcd8cc7f161c |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
slaxemulator@9495 | 4 VERSION="2.24.4" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
jozee@3751 | 8 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
pankso@22 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 10 WEB_SITE="http://www.gtk.org/" |
slaxemulator@9495 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@1634 | 12 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 13 |
pankso@9868 | 14 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \ |
pankso@9868 | 15 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \ |
pankso@9868 | 16 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \ |
pankso@9868 | 17 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr" |
pankso@9868 | 18 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \ |
pankso@9868 | 19 gobject-introspection-dev libffi-dev perl" |
pankso@9868 | 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@9868 | 28 --with-html-dir=/usr/share/doc && |
pascal@5784 | 29 make -j 4 && |
pankso@9868 | 30 make DESTDIR=$DESTDIR install |
pankso@22 | 31 } |
pankso@22 | 32 |
pankso@22 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 34 genpkg_rules() |
pankso@22 | 35 { |
pankso@547 | 36 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 37 |
pankso@22 | 38 # Libs. |
pankso@2002 | 39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 40 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 41 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 42 |
pankso@2002 | 43 # Themes |
pankso@2002 | 44 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 45 |
pankso@2002 | 46 # Apps. |
pankso@2002 | 47 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 48 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
rcx@3620 | 49 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin |
pankso@22 | 50 } |
pankso@22 | 51 |
pankso@22 | 52 # Pre and post install commands for Tazpkg. |
pankso@22 | 53 post_install() |
pankso@22 | 54 { |
pascal@5124 | 55 local arg |
pankso@2002 | 56 echo "Processing post-install commands..." |
slaxemulator@7774 | 57 if [ ! -d $1/etc/gtk-2.0 ]; then |
slaxemulator@7772 | 58 mkdir -p $1/etc/gtk-2.0 |
slaxemulator@7772 | 59 fi |
pascal@5124 | 60 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 61 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 62 # clearlooks are updated) |
pascal@5124 | 63 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then |
pascal@5124 | 64 arg="--forced" |
pascal@5124 | 65 [ -n "$1" ] && arg="--forced --root=$1/" |
pascal@5124 | 66 tazpkg get-install clearlooks $arg |
pascal@5124 | 67 rm -rf $1/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 68 fi |
pankso@22 | 69 } |
slaxemulator@6394 | 70 |