wok view gtk+/receipt @ rev 7325
Up: librsvg-apps to 2.32.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 18 12:06:33 2010 +0000 (2010-11-18) |
parents | af4c2aec0744 |
children | dde604dad060 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.22.1"
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="gdk-pixbuf-dev cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \
13 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \
14 tiff-dev libgio-dev xorg-libXdamage xorg-libXdamage-dev xorg-libXinerama-dev zlib-dev \
15 xorg-xextproto expat-dev cups-dev libcomerr3 gobject-introspection-dev libffi-dev"
16 SUGGESTED="cups gnutls libgcrypt libgpg-error"
17 TARBALL="$PACKAGE-$VERSION.tar.bz2"
18 WEB_SITE="http://www.gtk.org/"
19 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/${VERSION%.*}/$TARBALL"
20 CONFIG_FILES="/etc/gtk-2.0"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --mandir=/usr/share/man \
30 --with-html-dir=/usr/share/doc \
31 $CONFIGURE_ARGS &&
32 make -j 4 &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
41 # Libs.
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
44 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
46 # Themes
47 cp -a $_pkg/usr/share/themes $fs/usr/share
49 # Apps.
50 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
51 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
52 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
54 # Config files.
55 mkdir -p $fs/etc/gtk-2.0
56 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
57 }
59 # Pre and post install commands for Tazpkg.
60 post_install()
61 {
62 local arg
63 echo "Processing post-install commands..."
64 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
65 # Force reinstall of clearlooks theme (1.0 compatibilty until
66 # clearlooks are updated)
67 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
68 arg="--forced"
69 [ -n "$1" ] && arg="--forced --root=$1/"
70 tazpkg get-install clearlooks $arg
71 rm -rf $1/usr/lib/gtk-2.0/2.4.0
72 fi
73 }