summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93fa4917bdc858015c6ff04703f679d23e9e7de8 (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
37
38
39
40
# Maintainer: necklace <ns@nsz.no> 
# Contributor: pingplug < aur at pingplug dot me >
# Contributor: Rolinh < robin DOT hahling AT gw-computing DOT net>

_pkgname=VQMT

pkgname=vqmt-git
pkgver=v1.1.25.g640a3a8
pkgrel=2
pkgdesc="Video Quality Measurement Tool which can compute PSNR, SSIM, MS-SSIM, VIFp, PSNR-HVS and PSNR-HVS-M metrics"
arch=('x86_64')
url="https://mmspg.epfl.ch/downloads/vqmt/"
license=('custom')
depends=('opencv')
makedepends=('git'
             'cmake')
source=("git+https://github.com/Rolinh/VQMT.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --tags | sed 's|-|.|g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=RELEASE \
    .
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: