# babl - Pixel format conversion 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=babl
version=0.1.114
release=1
desc="Pixel format conversion library"
url="https://gegl.org/babl/"
license="LGPL-3.0-or-later"
depend="glibc lcms2"
makedepend="meson ninja"
source="https://download.gimp.org/babl/0.1/babl-0.1.114.tar.xz"
sha256="SKIP"

build() {
	cd "babl-0.1.114"
	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 "babl-0.1.114"
	DESTDIR="$pkgdir" ninja -C build install
}
