blob: beb1a6767cdf6d8ac8df1df9a8bf067e2593a271 (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=butteraugli-git
pkgver=r36.g71b18b6
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=$pkgver")
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" -t "$pkgdir/usr/bin"
}
|