aboutsummaryrefslogtreecommitdiffstats
path: root/community/libplacebo/APKBUILD
blob: 43ed6377f0c769bf1147a92b38e3b8a88d00bcb3 (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.2
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
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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

sha512sums="0cb100350dbc81566a8363b0265bf89de8569b0313d1f1aa8ba621e39d7ee43a47ec9ab7827d01fdd2133c357983002412e67c2b2ba3616bd570f16e8e3ba135  libplacebo-v2.72.2.tar.gz"