# Contributor: Leo # Maintainer: pkgname=dav1d pkgver=0.5.2 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="37da9138a1dba68b9e723ba48b23eab567f839308132fc5a28727c131280f2eca3e160b074982f5265c914dcad0e4029af9ce23909b32bb9ec60f235c623e384 dav1d-0.5.2.tar.bz2"