wok view gtk+/receipt @ rev 605
Improved locale-es, locale-ru, locale-cs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 17 23:29:07 2008 +0200 (2008-04-17) |
parents | 2cce67662331 |
children | 8ac8ce140f78 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.12.6"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype"
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"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.gtk.org/"
13 WGET_URL="ftp://ftp.gtk.org/pub/gtk/2.12/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --mandir=/usr/share/man \
24 --with-html-dir=/usr/share/doc \
25 $CONFIGURE_ARGS
26 make
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
35 # Libs.
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
38 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
40 # Themes
41 cp -a $_pkg/usr/share/themes $fs/usr/share
43 # Apps.
44 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
45 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
46 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
47 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
49 # Config files.
50 mkdir -p $fs/etc/gtk-2.0
51 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
52 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 local root
59 root=$1
60 echo "Processing post-install commands..."
61 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
62 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
63 # Force reinstall of clearlooks them
64 tazpkg get-install clearlooks --forced
65 }
66 SELF_INSTALL=1