summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e2ffa7579487497080199102354a7942489cda1 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=butteraugli-git
pkgver=r33.g856a4da
pkgrel=1
pkgdesc="A tool for measuring perceived differences between images"
arch=('i686' 'x86_64')
url="https://github.com/google/butteraugli"
license=('Apache')
depends=('glibc' 'libjpeg' 'libpng')
makedepends=('git')
provides=('butteraugli')
conflicts=('butteraugli')
source=("git+https://github.com/google/butteraugli.git")
sha256sums=('SKIP')


pkgver() {
  cd "butteraugli"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "butteraugli"

  make --directory="butteraugli"
}

package() {
  cd "butteraugli"

  install -d "$pkgdir/usr"
  install -Dm755 "butteraugli/butteraugli" "$pkgdir/usr/bin/butteraugli"
}