# Template file for 'dav1d' pkgname=dav1d version=1.2.1 revision=1 build_style=meson configure_args="-Denable_asm=true -Denable_tools=true -Dfuzzing_engine=none -Dtestdata_tests=false" short_desc="Small and fast AV1 Decoder" maintainer="mustaqim " license="BSD-2-Clause" homepage="https://code.videolan.org/videolan/dav1d" changelog="https://code.videolan.org/videolan/dav1d/raw/master/NEWS" distfiles="https://code.videolan.org/videolan/dav1d/-/archive/${version}/dav1d-${version}.tar.bz2" checksum=a4003623cdc0109dec3aac8435520aa3fb12c4d69454fa227f2658cdb6dab5fa if [ "$XBPS_CHECK_PKGS" ]; then configure_args+=" -Denable_tests=true" else configure_args+=" -Denable_tests=false" fi case "$XBPS_TARGET_MACHINE" in x86_64* | i686*) hostmakedepends="nasm" ;; esac libdav1d6_package() { short_desc+=" - runtime library" pkg_install() { vmove "usr/lib/*.so.*" vlicense COPYING } } libdav1d-devel_package() { depends="libdav1d6-${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }