wok view gtk+/receipt @ rev 5973

mirror-tools: add host scripts
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 08 19:48:39 2010 +0200 (2010-08-08)
parents 2626cd7681ca
children 719c8e10f2c0
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.20.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 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"
12 BUILD_DEPENDS="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-dev xorg-libXinerama-dev zlib-dev \
15 xorg-xextproto expat-dev cups-dev libcomerr3"
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 --without-libjasper \
32 $CONFIGURE_ARGS &&
33 make -j 4 &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
42 # Libs.
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
45 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
47 # Themes
48 cp -a $_pkg/usr/share/themes $fs/usr/share
50 # Apps.
51 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
52 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
53 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
54 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
55 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
57 # Config files.
58 mkdir -p $fs/etc/gtk-2.0
59 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
60 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install()
65 {
66 local arg
67 echo "Processing post-install commands..."
68 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
69 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
70 # Force reinstall of clearlooks theme (1.0 compatibilty until
71 # clearlooks are updated)
72 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
73 arg="--forced"
74 [ -n "$1" ] && arg="--forced --root=$1/"
75 tazpkg get-install clearlooks $arg
76 rm -rf $1/usr/lib/gtk-2.0/2.4.0
77 fi
78 }