aboutsummaryrefslogtreecommitdiffstats
path: root/community/babl/APKBUILD
blob: 20e53bd942880143f056694615c58b897dcc3d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"