wok view gtk+/receipt @ rev 12202
pm-utils: add CONFIG_FILES
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Mar 26 20:38:28 2012 +0200 (2012-03-26) |
parents | c6a1b92559ce 37d744940e6c |
children | b41d0ab98d56 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.10"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="cups gnutls libgcrypt libgpg-error"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules"
13 CROSS="bug: /bin/bash: no: command not found"
15 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
16 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
17 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
18 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
19 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 cups dbus-dev \
20 gobject-introspection gobject-introspection-dev libffi-dev perl gdk-pixbuf-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --with-html-dir=/usr/share/doc \
30 --build=$HOST_SYSTEM --host=$HOST_SYSTEM
31 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
32 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
33 make $MAKEFLAGS &&
34 make DESTDIR=$DESTDIR 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/gtk-builder-convert $fs/usr/bin
55 mkdir -p $fs/etc/gtk-2.0
56 touch $fs/etc/gtk-2.0/gtk.immodules
57 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
58 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
59 }
61 # Pre and post install commands for Tazpkg.
62 post_install()
63 {
64 local arg
65 echo "Processing post-install commands..."
66 if [ ! -d $1/etc/gtk-2.0 ]; then
67 mkdir -p $1/etc/gtk-2.0
68 fi
69 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
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 }