# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=babl
pkgver=0.1.34
pkgrel=0
pkgdesc="Dynamic, any to any, pixel format conversion library"
url="http://gegl.org/babl/"
arch="all"
license="LGPL-3.0-or-later"
subpackages="$pkgname-dev"
source="http://ftp.gimp.org/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="32495177863fcb3626bdf45121bf97df01f96f985beb69315a73d5ea8eea4efe52c31c8dc6bcac4c160f0336f9d9c2290ad73fbcbe3091b5bcfff23225d2ffcc  babl-0.1.34.tar.bz2"
