aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dav1d/APKBUILD
blob: c0b90f770eed3e6fc19161a2e95b91d5e8c0fece (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=dav1d
pkgver=0.4.0
pkgrel=0
pkgdesc="small and fast AV1 Decoder"
url="https://code.videolan.org/videolan/dav1d"
arch="all"
license="BSD-2-Clause"
makedepends="nasm meson sdl2-dev libplacebo-dev vulkan-loader-dev"
subpackages="$pkgname-dev lib$pkgname:libs"
source="https://code.videolan.org/videolan/dav1d/-/archive//$pkgver/dav1d-$pkgver.tar.bz2"

build() {
	case "$CARCH" in
		armhf*) meson_opts="-Denable_asm=false" ;;
		*) meson_opts="-Denable_asm=true" ;;
	esac

	meson \
		--prefix=/usr \
		-Denable_tests=true \
		-Denable_tools=true \
		-Dfuzzing_engine=none \
		-Dtestdata_tests=false \
		${meson_opts} \
		build
	ninja -C build
}

check() {
	ninja -C build test
}

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

sha512sums="7d2ad9959649321e86f9d0dcf44b274251c103fce9f02964d898b6d9da69e38e93bbed86a7ea217c93e0ee89e1ad43bc31dc217535c4b1cc37761191a6585fc1  dav1d-0.4.0.tar.bz2"