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

pkgname=guetzli-git
pkgver=1.0.1.r72.g0b78c7c
pkgrel=1
pkgdesc="Perceptual JPEG encoder"
arch=('i686' 'x86_64')
url="https://github.com/google/guetzli"
license=('Apache')
depends=('libpng')
makedepends=('git')
provides=('guetzli')
conflicts=('guetzli')
source=("git+https://github.com/google/guetzli.git")
sha256sums=('SKIP')


pkgver() {
  cd "guetzli"

  git describe --long --tags | sed 's/^[A-Za-z]*//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "guetzli"

  make config=release
}

package() {
  cd "guetzli"

  install -d "$pkgdir/usr"
  install -Dm755 "bin/Release/guetzli" "$pkgdir/usr/bin/guetzli"
}