wok-current view gtk+/receipt @ rev 328
Desktop file for xload and mtPaint in French please...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 04 16:15:44 2008 +0100 (2008-03-04) |
parents | d103e8bbb768 |
children | 2cce67662331 |
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 libpng jpeg fontconfig freetype"
9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev
10 pkgconfig 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/v2.8/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --sysconfdir=/etc \
20 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \
21 $CONFIGURE_ARGS
22 make
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin
31 # Libs.
32 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
33 cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0
34 rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la
36 # Locale.
37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
38 cp -a $_pkg/usr/share/themes $fs/usr/share
40 # Apps.
41 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
42 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
43 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
44 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
46 # Config files.
47 mkdir -p $fs/etc/gtk-2.0
48 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
49 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
51 # Strip all files.
52 strip --strip-all $fs/usr/bin/*
53 strip --strip-unneeded $fs/usr/lib/*.so*
54 strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/*
55 }
57 # Pre and post install commands for Tazpkg.
58 post_install()
59 {
60 local root
61 root=$1
62 echo "Processing post-install commands..."
63 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
64 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
65 }
66 SELF_INSTALL=1