# Contributor: Leo # Maintainer: Bart Ribbers pkgname=dav1d pkgver=1.2.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 CFLAGS="$CFLAGS -O2" \ CXXFLAGS="$CXXFLAGS -O2" \ abuild-meson \ -Db_lto=true \ -Denable_tests=true \ -Denable_tools=true \ -Dfuzzing_engine=none \ -Dtestdata_tests=false \ $meson_opts \ build meson compile -C build } check() { meson test --no-rebuild --print-errorlogs -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } sha512sums=" e8a4c2802c6bd0c194adf6addb276ccf9c0caa7a5a86465764e007e9daf3fbb1ef1480b3af2e2c394baae7ab80519793aeadd7589dae37378bf88c4240c47067 dav1d-1.2.1.tar.bz2 "