summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 957e8089e4c23265a7ef0bb84c3e3eca57523f55 (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
# Maintainer: George Rawlinson <grawlinson@archlinux.org>

pkgname=hare-png
pkgver=r56.96a09c8
pkgrel=1
pkgdesc='PNG implementation for Hare'
arch=('any')
url='https://git.sr.ht/~sircmpwn/hare-png'
license=('MPL2')
depends=('hare' 'hare-compress')
makedepends=('git')
_commit='96a09c8d50b49d0a11443b62e13f23b90f42c623'
source=("$pkgname::git+$url#commit=$_commit")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

check() {
  cd "$pkgname"

  make check
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir" PREFIX=/usr install
}