summaryrefslogtreecommitdiff
path: root/community/babl/APKBUILD
blob: b87376cc02c8006e605f303e44e698e2ffad2e16 (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
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=babl
pkgver=0.1.96
pkgrel=0
pkgdesc="Dynamic, any to any, pixel format conversion library"
url="https://gegl.org/babl"
arch="all"
license="LGPL-3.0-or-later"
depends_dev="$pkgname-tools=$pkgver-r$pkgrel"
makedepends="meson gobject-introspection-dev lcms2-dev vala"
subpackages="$pkgname-dev $pkgname-tools"
source="https://download.gimp.org/pub/babl/${pkgver%.*}/babl-$pkgver.tar.xz
	git.patch
	"

prepare() {
	default_prepare

	# disable some tests
	case $CARCH in
	aarch64)
		sed -i \
			-e "/float-to-8bit/d" \
			tests/meson.build
		;;
	esac
}

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

tools() {
	pkgdesc="$pkgdesc (cli tool)"

	amove usr/bin
}

sha512sums="
771d68b80f1123baa38256e4b1d7946284cd88997b2ab7c7092a74120e91ea5ee7ab4c001686ae4b3e363b6465484f185a64f9c75515a55d3ffb81fecbeaca42  babl-0.1.96.tar.xz
8208bd7a0e34508e14a68b1f67396d2804ff2f73db4e58d198b352891e72cc19db350c05c9fa6662b25ed4671073bd08410386ac34c88e20c618125909dd38c6  git.patch
"