aboutsummaryrefslogtreecommitdiffstats
path: root/community/babl/APKBUILD
blob: 673517b783f51ad36021733df8a9ab130535320e (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
52
53
54
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=babl
pkgver=0.1.106
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
	arm-neon-v1.patch
	git.patch
	"

prepare() {
	default_prepare

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

build() {
	CFLAGS="$CFLAGS -O2" \
	abuild-meson -Db_lto=true . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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

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

	amove usr/bin
}

sha512sums="
97dc57141754ff64a961f77df50dcd91b32d3cf26efa8ba9f3dd5fcfae41e96f986178a04ba7a8940effb6e6e33ac98b163551f377dc781308c750222efb4943  babl-0.1.106.tar.xz
8c73e601fc376ed4aab10193d6060b2a2d49f2f71062ae8478335ec1eab488adf44bf6c1fe3258cf14375add7f2aa54f6eab4449f0dc3f5bdffec47ca18d166d  arm-neon-v1.patch
8208bd7a0e34508e14a68b1f67396d2804ff2f73db4e58d198b352891e72cc19db350c05c9fa6662b25ed4671073bd08410386ac34c88e20c618125909dd38c6  git.patch
"