wok-6.x view gdk-pixbuf/receipt @ rev 24169
updated os-prober (1.78 -> 1.79)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Dec 29 06:36:37 2021 +0100 (2021-12-29) |
parents | 7757b63c231b |
children | 01627c411095 |
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 current_version()
27 {
28 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
29 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
30 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 case "$ARCH" in
37 arm) echo "gio_can_sniff=yes" > arm.cache ;;
38 esac
39 ./configure \
40 --disable-glibtest \
41 --without-libjasper \
42 --with-x11 \
43 $CONFIGURE_ARGS $ARCH_ARGS &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
55 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
56 [ -d "$install/usr/lib/girepository-1.0" ] &&
57 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 # Updating gdk pixbuf loaders cache file...
66 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
67 }