wok-6.x view gdk-pixbuf/receipt @ rev 23252
updated nss-ldapd (0.7.15 -> 0.9.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 14:43:12 2020 +0100 (2020-03-25) |
parents | a78610b2eb47 |
children | 5d79829fa876 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.31.1"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gtk.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
14 DEPENDS="glib jpeg libgio libpng shared-mime-info tiff xorg-libX11 zlib"
15 BUILD_DEPENDS="glib-dev jbigkit jpeg-dev libgio-dev libpng-dev
16 shared-mime-info-dev tiff-dev xorg-libX11-dev zlib-dev"
18 HOST_ARCH="i486 arm"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
23 arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 arm) echo "gio_can_sniff=yes" > arm.cache ;;
31 esac
32 ./configure \
33 --disable-glibtest \
34 --without-libjasper \
35 --with-x11 \
36 $CONFIGURE_ARGS $ARCH_ARGS &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
48 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
49 [ -d "$install/usr/lib/girepository-1.0" ] &&
50 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 # Updating gdk pixbuf loaders cache file...
59 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
60 }