wok-current view gtk+/receipt @ rev 10766
jstetris: Fixed jstetris to work with source dvd when offline. Added index.html to stuff so only JsTetris.js file is needed. Also there is no need for compile_rules with this one anymore.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue May 31 08:08:28 2011 +0000 (2011-05-31) |
parents | 43e3267023cb |
children | 4332906b243f |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.4"
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.bz2"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 CONFIG_FILES="/etc/gtk-2.0"
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 CFLAGS="-02"
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --with-html-dir=/usr/share/doc \
31 --build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
32 make -j 4 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
41 # Libs.
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
44 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
46 # Themes
47 cp -a $_pkg/usr/share/themes $fs/usr/share
49 # Apps.
50 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
51 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
52 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 local arg
59 echo "Processing post-install commands..."
60 if [ ! -d $1/etc/gtk-2.0 ]; then
61 mkdir -p $1/etc/gtk-2.0
62 fi
63 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
64 # Force reinstall of clearlooks theme (1.0 compatibilty until
65 # clearlooks are updated)
66 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
67 arg="--forced"
68 [ -n "$1" ] && arg="--forced --root=$1/"
69 tazpkg get-install clearlooks $arg
70 rm -rf $1/usr/lib/gtk-2.0/2.4.0
71 fi
72 }