diff options
author | Daniel Bermond | 2018-02-12 13:54:37 -0200 |
---|---|---|
committer | Daniel Bermond | 2018-02-12 13:57:24 -0200 |
commit | 3fbf8e0a64887a3350be735bba1d2bf859e24680 (patch) | |
tree | 849103ff072c121496c1de685da84483cd732102 /PKGBUILD | |
download | aur-3fbf8e0a64887a3350be735bba1d2bf859e24680.tar.gz |
Initial import. Package renamed from libvmaf-git to vmaf-git.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8684df4bb6fd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Daniel Bermond < yahoo-com: danielbermond > + +pkgname=vmaf-git +pkgver=1.3.1.r58.g755c93c +pkgrel=1 +pkgdesc='Perceptual video quality assessment algorithm based on multi-method fusion (git version)' +arch=('i686' 'x86_64') +url='https://github.com/netflix/vmaf/' +license=('APACHE') +depends=('gcc-libs') +makedepends=('git') +provides=('vmaf' 'libvmaf' 'libvmaf-git') +conflicts=('vmaf' 'libvmaf' 'libvmaf-git') +replaces=('libvmaf-git') +source=("$pkgname"::'git+https://github.com/Netflix/vmaf.git') +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + + # git, tags available + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} + +build() { + cd "$pkgname" + make all +} + +package() { + cd "$pkgname" + + make DESTDIR="$pkgdir" INSTALL_PREFIX='/usr' install + + # binary executable + install -D -m755 wrapper/vmafossexec "${pkgdir}/usr/bin/vmafossexec" + + # fix prefixes on pkgconfig file + sed -i 's|/usr/local|/usr|g' "${pkgdir}/usr/lib/pkgconfig/libvmaf.pc" +} |