summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18cf4718a9433996ac4b677562c0d8144416b854 (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: pingplug < aur at pingplug dot me >
# Submitter: Rolinh < robin DOT hahling AT gw-computing DOT net >
# Contributor: Rolinh < robin DOT hahling AT gw-computing DOT net>

_pkgname=VQMT

pkgname=vqmt-git
pkgver=v1.1.23.ge49803f
pkgrel=1
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 \
    -DPREFIX=/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: