summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35d3d9c2e1d700ffe33896a2cd3804a8ae6377b2 (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
# Maintainer: Jonathan Knapp <jaknapp8+aur@gmail.com>
# URL: https://github.com/anaseto/boohu
# Upstream: https://github.com/anaseto/boohu

pkgname=('boohu-git')
pkgver=0.7.1
pkgrel=1
pkgdesc="Break Out Of Hareka's Underground, a roguelike game."
arch=('i686' 'x86_64')
url='https://github.com/anaseto/boohu'
license=('ISC')
depends=()
makedepends=('git' 'go')
provides=('boohu')
#conflicts=('boohu')
source=("$pkgname::git+https://github.com/anaseto/boohu.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//;s/-/./g'
}

prepare() {
  export GOPATH="$srcdir"
  rm -fr "$srcdir/src"
  git clone "$srcdir/$pkgname" "$GOPATH/src/github.com/anaseto/boohu"
}

package() {
  export GOPATH="$srcdir"
  cd "$GOPATH/src/github.com/anaseto/boohu"
  go get -v .
  install -Dm 755 "$srcdir/bin/boohu" -t "$pkgdir/usr/bin";
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}