aboutsummaryrefslogtreecommitdiffstats
path: root/community/babl/APKBUILD
blob: 85b45ce72e100ff2a1b8e555bc626db7defba02d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=babl
pkgver=0.1.74
pkgrel=1
pkgdesc="Dynamic, any to any, pixel format conversion library"
url="http://gegl.org/babl"
arch="all"
license="LGPL-3.0-or-later"
makedepends="meson gobject-introspection-dev lcms2-dev"
subpackages="$pkgname-dev"
source="https://ftp.gimp.org/pub/babl/${pkgver%.*}/babl-$pkgver.tar.xz"

case "$CARCH" in
# tests time out on builder
mips*)	options="!check";;
esac

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="97b4a5aad76b7d6dee1835774cee48f866a9513c6454d74c3378068a60359704c1ba106a7542b9ac6a7968b3cf632ed2626b835ec9c7f3fcc6e29968c1e39396  babl-0.1.74.tar.xz"