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

pkgname=('boohu-git')
pkgver=0.9.0.48.gee52056
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"
  rm -fr "$srcdir/bin"
  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"
}