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

pkgname=hare-linux
pkgver=r63.6c8e4dc
pkgrel=1
pkgdesc='Extended Linux support for Hare'
arch=('any')
url='https://git.sr.ht/~sircmpwn/hare-linux'
license=('MPL2')
depends=('hare')
makedepends=('git')
_commit='6c8e4dc9e89363e372e5fd38cb03f8c5ba761505'
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)"
}

package() {
  cd "$pkgname"

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