
Receipt for package "gdk-pixbuf"
# SliTaz package receipt. PACKAGE="gdk-pixbuf" VERSION="2.42.6" CATEGORY="x-window" SHORT_DESC="An image loading library for gtk2." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" WEB_SITE="https://www.gtk.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="glib jpeg libgio libjpeg libpng shared-mime-info tiff xorg-libX11 zlib" BUILD_DEPENDS="glib-dev jbigkit jpeg-dev libgio-dev libjpeg libpng-dev shared-mime-info-dev tiff-dev xorg-libX11-dev zlib-dev meson" HOST_ARCH="i486 arm x86_64" # Handle cross compilation case "$ARCH" in (i?86|x86_64) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; (arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;; esac current_version() { wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { case "$ARCH" in (arm) echo "gio_can_sniff=yes" > arm.cache ;; esac # Backport patch for CVE-2022-48622 # see https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/4d7c94ca # mtpaint segfault with 2.42.12 (thank Ceel for report) patch -p1 < $stuff/CVE-2022-48622.patch meson build \ --prefix=/usr \ --libdir=lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --buildtype=release \ -Dman=false \ -Dinstalled_tests=false && ninja -C build && ninja -C build install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \ $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders [ -d "$install/usr/lib/girepository-1.0" ] && cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache } # Pre and post install commands for Tazpkg. post_install() { # Updating gdk pixbuf loaders cache file... chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache }
6091 packages and 256114 files in current database (Thu Apr 3 00:00:04 2025)