blob: 46bda61492ace635985fe762631527877d79103c (
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.3.1
pkgrel=0
pkgdesc="small and fast AV1 Decoder"
url="https://code.videolan.org/videolan/dav1d"
arch="all"
license="BSD-2-Clause"
makedepends="nasm meson"
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="-Dbuild_asm=false" ;;
*) meson_opts="-Dbuild_asm=true" ;;
esac
meson \
--prefix=/usr \
-Dbuild_tests=true \
-Dbuild_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="b810c993a2a262f75ea0d4404428bc5660ac0d4c4d41aa311bc2180abecc40b36e73858f436b27372f4a1a0b7c700df4f8cc535130c663d6bfba2206d549e0f2 dav1d-0.3.1.tar.bz2"
|