void-packages/srcpkgs/vmaf/template

31 lines
855 B
Bash

# Template file for 'vmaf'
pkgname=vmaf
version=2.3.1
revision=1
build_wrksrc=libvmaf
build_style=meson
hostmakedepends="nasm xxd"
short_desc="Perceptual video quality assessment algorithm developed by Netflix"
maintainer="Eugen Zagorodniy <zag@disroot.org>"
license=BSD-2-Clause-Patent
homepage="https://github.com/Netflix/vmaf"
distfiles="https://github.com/Netflix/vmaf/archive/refs/tags/v${version}.tar.gz"
checksum=8d60b1ddab043ada25ff11ced821da6e0c37fd7730dd81c24f1fc12be7293ef2
post_install() {
vlicense ../LICENSE
# Obsolete compute_vmaf() used by ffmpeg-4.4.3 requires non-built-in models
vcopy ../model usr/share/vmaf
}
vmaf-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}