upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / vmaf / trunk / PKGBUILD
blobc3e00aecb69d51b8a2c8019fa4eb01193be90e26
1 # Maintainer: Daniel Bermond <dbermond@archlinux.org>
3 pkgname=vmaf
4 pkgver=2.3.1
5 pkgrel=1
6 pkgdesc='Perceptual video quality assessment algorithm based on multi-method fusion'
7 arch=('x86_64')
8 url='https://github.com/Netflix/vmaf/'
9 license=('BSD')
10 depends=('gcc-libs')
11 makedepends=('meson' 'nasm' 'vim' 'doxygen')
12 options=('!lto')
13 source=("https://github.com/Netflix/vmaf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
14 sha256sums=('8d60b1ddab043ada25ff11ced821da6e0c37fd7730dd81c24f1fc12be7293ef2')
16 build() {
17     arch-meson "${pkgname}-${pkgver}/libvmaf/build" "${pkgname}-${pkgver}/libvmaf"
18     ninja -v -C "${pkgname}-${pkgver}/libvmaf/build"
21 check() {
22     ninja -v -C "${pkgname}-${pkgver}/libvmaf/build" test
25 package() {
26     DESTDIR="$pkgdir" ninja -v -C "${pkgname}-${pkgver}/libvmaf/build" install
27     install -D -m755 "${pkgname}-${pkgver}/libvmaf/build/tools/vmafossexec" -t "${pkgdir}/usr/bin"
28     install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
29     cp -dr --no-preserve='ownership' "${pkgname}-${pkgver}/model" "${pkgdir}/usr/share"