wok-current view gtk+/receipt @ rev 219
Modified dialogrc (better slitaz style...)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 15 11:18:46 2008 +0100 (2008-02-15) |
parents | ad5e33e4dad7 |
children | 5fb805950887 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.8.20"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk"
9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr --sysconfdir=/etc \
19 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
20 $CONFIGURE_ARGS
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin
30 # Libs.
31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
32 cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0
33 rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la
35 # Locale.
36 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
37 cp -a $_pkg/usr/share/themes $fs/usr/share
39 # Apps.
40 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
41 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
42 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
43 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
45 # Config files.
46 mkdir -p $fs/etc/gtk-2.0
47 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
48 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
50 # Strip all files.
51 strip --strip-all $fs/usr/bin/*
52 strip --strip-unneeded $fs/usr/lib/*.so*
53 strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/*
54 }
56 # Pre and post install commands for Tazpkg.
57 post_install()
58 {
59 local root
60 root=$1
61 echo "Processing post-install commands..."
62 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
63 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
64 }
65 SELF_INSTALL=1