wok-current view gdk-pixbuf/receipt @ rev 15845

dosfstools: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 27 11:23:53 2014 +0000 (2014-01-27)
parents 87f5f812070b
children 9412b690444b
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.26.1"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 CROSS="bug: can not run test program"
14 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info"
15 BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \
16 xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --disable-glibtest \
24 --without-libjasper \
25 --with-x11 \
26 --build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
36 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
37 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 echo -n "Updating gdk pixbuf loaders cache file..."
46 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
47 status
48 }