# Contributor: Leo # Maintainer: Leo pkgname=dav1d pkgver=0.5.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" 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="bfc912597b4be76d2673f2ed2cb2c09860abc8fa4df9832740540ce82bc0452c12cfc092e185b534d0c2e903e7394025959e67ef57034a26f161433e7671b7e8 dav1d-0.5.0.tar.bz2"