# Maintainer: Natanael Copa pkgname=babl pkgver=0.1.50 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="https://ftp.gimp.org/pub/babl/${pkgver%.*}/$pkgname-$pkgver.tar.bz2" build() { cd "$builddir" # See: https://bugzilla.gnome.org/show_bug.cgi?id=790745 [ "$CARCH" = "s390x" ] && sed -i -e 's/-Ofast//g' configure ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } check() { cd "$builddir" for i in float-to-8bit; do cat > tests/$i <<- EOF #!/bin/sh echo Skipping test "$i" EOF chmod +x "tests/$i" done make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="9b321933f6da41ce9be85a9b5e33a24857cb33d2a2a02ec30173c99dff66354d03c53e5e94ae46f9b59b11b9404b0cffbc39fc14e360412eca70584b61d25097 babl-0.1.50.tar.bz2"