# Maintainer: Natanael Copa pkgname=gdk-pixbuf pkgver=2.38.1 pkgrel=0 pkgdesc="GTK+ image loading library" url="https://wiki.gnome.org/Projects/GdkPixbuf" arch="all" license="LGPL-2.0-or-later" depends="shared-mime-info" depends_dev="shared-mime-info" makedepends="tiff-dev libjpeg-turbo-dev gobject-introspection-dev libpng-dev glib-dev meson" install="$pkgname.pre-deinstall" triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg" source="https://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz" replaces="gtk+" # secfixes: # 2.36.6-r1: # - CVE-2017-6311 # - CVE-2017-6312 # - CVE-2017-6314 build() { cd "$builddir" meson \ --prefix=/usr \ -Dinstalled_tests=false \ output . ninja -C output } check() { cd "$builddir" # pixbuf-area-updated takes over 50 minutes to run on Drone case $CARCH in armhf) if test $DRONE; then sed -i '/pixbuf-area-updated/d' tests/meson.build fi ;; esac meson test -C output } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C output install } doc() { replaces="gtk+-doc" default_doc } dev() { replaces="gtk+-dev" default_dev } sha512sums="e50badaad2ccb3c816ba0849be386ecb75ea3c7df203d0b0144541c463ad1ace86c0d190b7550e3f59f0cba9639acc5cc048b7127484287894e4df6d62777920 gdk-pixbuf-2.38.1.tar.xz"