void-packages/srcpkgs/dav1d/template

49 lines
1.2 KiB
Bash

# Template file for 'dav1d'
pkgname=dav1d
version=1.3.0
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="Orphaned <orphan@voidlinux.org>"
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=bde8db3d0583a4f3733bb5a4ac525556ffd03ab7dcd8a6e7c091bee28d9466b1
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
libdav1d_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vlicense COPYING
}
}
libdav1d-devel_package() {
depends="libdav1d-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libdav1d6_package() {
depends="libdav1d-${version}_${revision}"
build_style=meta
short_desc+=" - runtime library (transitional dummy package)"
}