wok annotate gtk+/receipt @ rev 9745
Fixed binutils to work with tazwok. Need to cd $src before mkdir -p ../binutils-build. This will not chanage anything with cookutils.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 22:07:48 2011 +0000 (2011-05-09) |
parents | 7d24a8fecd61 |
children | 588b8e050fb4 |
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" |
slaxemulator@6631 | 8 DEPENDS="glibc-base expat libxcb xcb-util zlib \ |
slaxemulator@6631 | 9 glib cairo pango atk libpng jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio \ |
rcx@3743 | 10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ |
slaxemulator@6291 | 11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr" |
slaxemulator@9495 | 12 BUILD_DEPENDS="bash pkg-config \ |
pascal@8914 | 13 xorg-xextproto cups-dev libcomerr3 gobject-introspection-dev libffi-dev perl" |
jozee@3751 | 14 SUGGESTED="cups gnutls libgcrypt libgpg-error" |
pankso@22 | 15 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 16 WEB_SITE="http://www.gtk.org/" |
slaxemulator@9495 | 17 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@1634 | 18 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 19 |
pankso@22 | 20 # Rules to configure and make the package. |
pankso@22 | 21 compile_rules() |
pankso@22 | 22 { |
pankso@22 | 23 cd $src |
pankso@547 | 24 ./configure \ |
pankso@547 | 25 --prefix=/usr \ |
pankso@547 | 26 --sysconfdir=/etc \ |
pankso@547 | 27 --mandir=/usr/share/man \ |
pankso@547 | 28 --with-html-dir=/usr/share/doc \ |
pascal@2430 | 29 $CONFIGURE_ARGS && |
pascal@5784 | 30 make -j 4 && |
pankso@22 | 31 make DESTDIR=$PWD/_pkg install |
pankso@22 | 32 } |
pankso@22 | 33 |
pankso@22 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 35 genpkg_rules() |
pankso@22 | 36 { |
pankso@547 | 37 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 38 |
pankso@22 | 39 # Libs. |
pankso@2002 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 41 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 42 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 43 |
pankso@2002 | 44 # Themes |
pankso@2002 | 45 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 46 |
pankso@2002 | 47 # Apps. |
pankso@2002 | 48 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 49 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
rcx@3620 | 50 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin |
pankso@836 | 51 |
pankso@22 | 52 } |
pankso@22 | 53 |
pankso@22 | 54 # Pre and post install commands for Tazpkg. |
pankso@22 | 55 post_install() |
pankso@22 | 56 { |
pascal@5124 | 57 local arg |
pankso@2002 | 58 echo "Processing post-install commands..." |
slaxemulator@7774 | 59 if [ ! -d $1/etc/gtk-2.0 ]; then |
slaxemulator@7772 | 60 mkdir -p $1/etc/gtk-2.0 |
slaxemulator@7772 | 61 fi |
pascal@5124 | 62 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 63 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 64 # clearlooks are updated) |
pascal@5124 | 65 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then |
pascal@5124 | 66 arg="--forced" |
pascal@5124 | 67 [ -n "$1" ] && arg="--forced --root=$1/" |
pascal@5124 | 68 tazpkg get-install clearlooks $arg |
pascal@5124 | 69 rm -rf $1/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 70 fi |
pankso@22 | 71 } |
slaxemulator@6394 | 72 |