blob: e302bc856b08bb9faf3bade6694493490c49dc94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=vmaf-git
pkgver=2.0.0.r27.g9f5ecc65
pkgrel=2
pkgdesc='Perceptual video quality assessment algorithm based on multi-method fusion (git version)'
arch=('x86_64')
url='https://github.com/Netflix/vmaf/'
license=('BSD')
depends=('gcc-libs')
makedepends=('git' 'meson' 'nasm' 'vim' 'doxygen')
provides=('vmaf' 'libvmaf-git')
conflicts=('vmaf' 'libvmaf-git')
replaces=('libvmaf-git')
source=('git+https://github.com/Netflix/vmaf.git')
sha256sums=('SKIP')
pkgver() {
git -C vmaf describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
arch-meson vmaf/libvmaf/build vmaf/libvmaf
ninja -v -C vmaf/libvmaf/build
}
check() {
ninja -v -C vmaf/libvmaf/build test
}
package() {
DESTDIR="$pkgdir" ninja -v -C vmaf/libvmaf/build install
install -D -m755 vmaf/libvmaf/build/tools/vmafossexec -t "${pkgdir}/usr/bin"
install -D -m644 vmaf/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
cp -dr --no-preserve='ownership' vmaf/model "${pkgdir}/usr/share"
}
|