summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6abd60a50365661148f7257fe545ce7261155ec (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
# Maintainer: xiretza <xiretza+aur@gmail.com>
pkgname=dungeonfs
pkgver=r12.6fdee80
pkgrel=1
pkgdesc="A FUSE filesystem and dungeon crawling adventure game engine, written in Go."
arch=('x86_64'
      'i386'
      'armv6h'
      'armv7h')
url='https://github.com/ChrisRx/dungeonfs'
license=('BSD')
depends=('fuse2')
makedepends=('go'
	     'make'
	     'git')
source=("git://github.com/ChrisRx/dungeonfs.git")
sha256sums=('SKIP')
_giturl=github.com/ChrisRx/dungeonfs

build() {
	GOPATH="${srcdir}/go" go get -u -v "${_giturl}/..."
}

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

package() {
	cd "${srcdir}/go"
	install -D "bin/dungeonfs" -t "${pkgdir}/usr/bin/"
	install -Dm644 "src/${_giturl}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
	mkdir -p "${pkgdir}/usr/share/${pkgname}/"
	cp -a "src/${_giturl}/examples" "${pkgdir}/usr/share/${pkgname}/"
}