summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64175d263a17df6bfd24a5b9ba255ffeb82f83e1 (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-md5
pkgver=r3.65e68b1
pkgrel=1
pkgdesc='MD5 implementation for Hare'
arch=('any')
url='https://git.sr.ht/~sircmpwn/hare-md5'
license=('MPL2')
depends=('hare')
makedepends=('git')
_commit='65e68b144edef9a84ce663b7e5064c8dd72cdb06'
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
}