# Template file for 'dav1d'
pkgname=dav1d
version=0.2.1
revision=1
build_style=meson
configure_args="-Dbuild_tests=false -Dbuild_asm=true -Dbuild_tools=true
 -Dfuzzing_engine=none -Dtestdata_tests=false"
hostmakedepends="nasm"
short_desc="Small and fast AV1 Decoder"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-2-Clause"
homepage="https://code.videolan.org/videolan/dav1d"
distfiles="https://code.videolan.org/videolan/dav1d/-/archive//${version}/dav1d-${version}.tar.bz2"
checksum=887f672f0afad9ff66735997e4d55d03b72a098238e291ecb17ae529adc7dd23

libdav1d1_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		 vmove "usr/lib/*.so.*"
		 vlicense COPYING
	}
}

libdav1d-devel_package() {
	depends="libdav1d0-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
