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

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (2 months ago)
parents 9c2d0416fd7e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.42.6"
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 libjpeg libpng shared-mime-info tiff xorg-libX11 zlib"
15 BUILD_DEPENDS="glib-dev jbigkit jpeg-dev libgio-dev libjpeg libpng-dev
16 shared-mime-info-dev tiff-dev xorg-libX11-dev zlib-dev meson"
18 HOST_ARCH="i486 arm"
20 # Handle cross compilation
21 case "$ARCH" in
22 (i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev"
24 ;;
25 (arm)
26 ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache"
27 ;;
28 esac
30 current_version()
31 {
32 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
33 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
34 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
35 }
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 case "$ARCH" in
41 (arm) echo "gio_can_sniff=yes" > arm.cache ;;
42 esac
44 # Backport patch for CVE-2022-48622
45 # see https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/4d7c94ca
46 # mtpaint segfault with 2.42.12 (thank Ceel for report)
47 patch -p1 < $stuff/CVE-2022-48622.patch
49 meson build \
50 --prefix=/usr \
51 --libdir=lib \
52 --bindir=/usr/bin \
53 --sbindir=/usr/sbin \
54 --buildtype=release \
55 -Dman=false \
56 -Dinstalled_tests=false &&
57 ninja -C build &&
58 ninja -C build install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
68 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
69 [ -d "$install/usr/lib/girepository-1.0" ] &&
70 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
71 cp -a $install/usr/lib/*.so* $fs/usr/lib
72 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
73 }
75 # Pre and post install commands for Tazpkg.
76 post_install()
77 {
78 # Updating gdk pixbuf loaders cache file...
79 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
80 }