# gdk-pixbuf - Image loading library
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=gdk-pixbuf
version=2.44.4
release=1
desc="Image loading library"
url="https://gitlab.gnome.org/GNOME/gdk-pixbuf"
license="LGPL-2.1-or-later"
depend="glib libpng libjpeg-turbo libtiff"
makedepend="meson ninja"
source="https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.4.tar.xz"
sha256="SKIP"

build() {
	cd "gdk-pixbuf-2.44.4"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "gdk-pixbuf-2.44.4"
	DESTDIR="$pkgdir" ninja -C build install
}
