* update vmaf to 3.0.0-1

This commit is contained in:
Alexander Baldeck 2023-12-19 11:59:16 +01:00
parent 78ea0c0a52
commit 63c608ef68

View File

@ -1,32 +1,30 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=vmaf
pkgver=2.3.1
pkgver=3.0.0
pkgrel=1
pkgdesc='Perceptual video quality assessment algorithm based on multi-method fusion'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/Netflix/vmaf/'
license=('BSD')
depends=('gcc-libs')
makedepends=('meson' 'vim' 'doxygen')
makedepends=('meson')
makedepends_x86_64=('nasm')
options=('!lto')
checkdepends=('vim')
source=("https://github.com/Netflix/vmaf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('8d60b1ddab043ada25ff11ced821da6e0c37fd7730dd81c24f1fc12be7293ef2')
sha256sums=('7178c4833639e6b989ecae73131d02f70735fdb3fc2c7d84bc36c9c3461d93b1')
build() {
arch-meson "${pkgname}-${pkgver}/libvmaf/build" "${pkgname}-${pkgver}/libvmaf"
ninja -v -C "${pkgname}-${pkgver}/libvmaf/build"
arch-meson -Denable_avx512='false' "${pkgname}-${pkgver}/libvmaf" build
meson compile -C build
}
check() {
ninja -v -C "${pkgname}-${pkgver}/libvmaf/build" test
meson test -C build
}
package() {
DESTDIR="$pkgdir" ninja -v -C "${pkgname}-${pkgver}/libvmaf/build" install
install -D -m755 "${pkgname}-${pkgver}/libvmaf/build/tools/vmafossexec" -t "${pkgdir}/usr/bin"
meson install -C build --destdir "$pkgdir"
install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
cp -dr --no-preserve='ownership' "${pkgname}-${pkgver}/model" "${pkgdir}/usr/share"
}