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

Up git (CVE-2024-32002,CVE-2024-32004,CVE-2024-32020,CVE-2024-32021,CVE-2024-32465), gdk-pixbuf CVE-2022-48622, up linux 5.10.217
author Stanislas Leduc <shann@slitaz.org>
date Mon May 20 11:38:26 2024 +0000 (6 months ago)
parents 3ad63c8fc2f9
children 9c2d0416fd7e
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.42.12"
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 meson build \
45 --prefix=/usr \
46 --libdir=lib \
47 --bindir=/usr/bin \
48 --sbindir=/usr/sbin \
49 --buildtype=release \
50 -Dinstalled_tests=false &&
51 ninja -C build &&
52 ninja -C build install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
62 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
63 [ -d "$install/usr/lib/girepository-1.0" ] &&
64 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
67 }
69 # Pre and post install commands for Tazpkg.
70 post_install()
71 {
72 # Updating gdk pixbuf loaders cache file...
73 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
74 }