aboutsummaryrefslogtreecommitdiffstats
path: root/community/libplacebo/APKBUILD
blob: 91114a76176e2c7c2a578b02a2567a07c1860a95 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libplacebo
pkgver=2.72.0
pkgrel=0
pkgdesc="Reusable library for GPU-accelerated video/image rendering"
url="https://code.videolan.org/videolan/libplacebo"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	vulkan-loader-dev
	glslang-static
	glslang-dev
	shaderc-dev
	vulkan-headers
	lcms2-dev
	libepoxy-dev
	py3-mako
	"
subpackages="$pkgname-dev"
source="https://code.videolan.org/videolan/libplacebo/-/archive/v$pkgver/libplacebo-v$pkgver.tar.gz"
builddir="$srcdir/libplacebo-v$pkgver"

build() {
	abuild-meson \
		-Dvulkan=enabled \
		-Dglslang=enabled \
		-Dshaderc=enabled \
		-Dtests=true \
		-Dlcms=enabled \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

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

sha512sums="829d8805f8a52e082bf7c33f5be8a280480aa3cfbac73966cdf4ddaf0a01f25cc357b98a04fe85c82a53718b5d570a852edeafbb0cb12312c73cb23295fb9bd9  libplacebo-v2.72.0.tar.gz"