wok-current view gtk+/receipt @ rev 9699

Be less entousiast and sed only 13 pkgs :-)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 08 00:40:27 2011 +0200 (2011-05-08)
parents 7d24a8fecd61
children 588b8e050fb4
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.4"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base expat libxcb xcb-util zlib \
9 glib cairo pango atk libpng jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio \
10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
12 BUILD_DEPENDS="bash pkg-config \
13 xorg-xextproto cups-dev libcomerr3 gobject-introspection-dev libffi-dev perl"
14 SUGGESTED="cups gnutls libgcrypt libgpg-error"
15 TARBALL="$PACKAGE-$VERSION.tar.bz2"
16 WEB_SITE="http://www.gtk.org/"
17 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
18 CONFIG_FILES="/etc/gtk-2.0"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 --with-html-dir=/usr/share/doc \
29 $CONFIGURE_ARGS &&
30 make -j 4 &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
39 # Libs.
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
42 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
44 # Themes
45 cp -a $_pkg/usr/share/themes $fs/usr/share
47 # Apps.
48 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
49 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
50 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
52 }
54 # Pre and post install commands for Tazpkg.
55 post_install()
56 {
57 local arg
58 echo "Processing post-install commands..."
59 if [ ! -d $1/etc/gtk-2.0 ]; then
60 mkdir -p $1/etc/gtk-2.0
61 fi
62 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
63 # Force reinstall of clearlooks theme (1.0 compatibilty until
64 # clearlooks are updated)
65 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
66 arg="--forced"
67 [ -n "$1" ] && arg="--forced --root=$1/"
68 tazpkg get-install clearlooks $arg
69 rm -rf $1/usr/lib/gtk-2.0/2.4.0
70 fi
71 }