wok-6.x view gtk+/receipt @ rev 3638
encfs: fix tarball name
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 03 17:43:52 2009 +0200 (2009-07-03) |
parents | f4178be6d372 |
children | 303e30733e97 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.16.2"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk libpng jpeg tiff fontconfig freetype pixman libgio"
9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \
10 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \
11 tiff-dev libgio-dev xorg-libXdamage zlib-dev xorg-xextproto expat-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.gtk.org/"
14 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL"
15 CONFIG_FILES="/etc/gtk-2.0"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --mandir=/usr/share/man \
25 --with-html-dir=/usr/share/doc \
26 --without-libjasper \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
37 # Libs.
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
40 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
42 # Themes
43 cp -a $_pkg/usr/share/themes $fs/usr/share
45 # Apps.
46 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
47 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
48 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
49 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
50 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
52 # Config files.
53 mkdir -p $fs/etc/gtk-2.0
54 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
55 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
56 }
58 # Pre and post install commands for Tazpkg.
59 post_install()
60 {
61 local root
62 root=$1
63 echo "Processing post-install commands..."
64 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
65 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
66 # Force reinstall of clearlooks theme (1.0 compatibilty until
67 # clearlooks are updated)
68 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
69 tazpkg get-install clearlooks --forced
70 rm -rf $root/usr/lib/gtk-2.0/2.4.0
71 fi
72 }
73 SELF_INSTALL=1