diff options
author | Douglas Christman | 2015-08-24 19:15:02 -0400 |
---|---|---|
committer | Douglas Christman | 2015-08-24 19:23:04 -0400 |
commit | f2234d1b48b4d9db3c34873577153325825b61eb (patch) | |
tree | 050cc263a5d3df787e443705fa0b5aa252ee50cb /PKGBUILD | |
download | aur-termboy.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e254424e970b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Douglas Christman <DouglasChristman [at] gmail [dot] com> + +pkgname=termboy +_pkgname=termboy-go +pkgver=0.1.1 +pkgrel=1 +pkgdesc='A Nintendo GameBoy emulator for the Linux console' +arch=(i686 x86_64) +url="https://github.com/dobyrch/${_pkgname}" +license=(MIT) +makedepends=(go) +source=("https://github.com/dobyrch/${_pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('a74b7c616fc895846259bd19ef6805f2ac1542b0c3a0cbaa457deb4a982b9588') + +prepare() { + # `go build` expects the source code to exist in + # "$GOPATH/src/github.com/dobyrch/". Use $srcdir as $GOPATH. + cd "${srcdir}" + mkdir -p src/github.com/dobyrch + mv "${_pkgname}-${pkgver}" "src/github.com/dobyrch/${_pkgname}" +} + +build() { + cd "${srcdir}/src/github.com/dobyrch/${_pkgname}" + GOPATH="${srcdir}" go build +} + +package() { + cd "${srcdir}/src/github.com/dobyrch/${_pkgname}" + install -Dm 755 "${_pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: |