# Contributor: Leo # Maintainer: Bart Ribbers pkgname=dav1d pkgver=0.8.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="-Denable_asm=false" ;; *) meson_opts="-Denable_asm=true" ;; esac abuild-meson \ -Denable_tests=true \ -Denable_tools=true \ -Dfuzzing_engine=none \ -Dtestdata_tests=false \ $meson_opts \ build meson compile ${JOBS:+-j ${JOBS}} -C build } check() { meson test --no-rebuild -v -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } sha512sums="e882c11c4166a8ada0803a7f1f1de73b6d41fe94ea11300c89121a0551c04b6681e4e6e79d27753a990f7dca1723c35503eb1f02683cd4722db1ae055489e406 dav1d-0.8.1.tar.bz2"