aboutsummaryrefslogtreecommitdiffstats
path: root/community/go-bindata/APKBUILD
blob: b12cea00d412e7fc004bbb501b87bd84af81f2f0 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=go-bindata
pkgver=20151023
_hash="a0ff2567cfb70903282db057e799fd826784d41d"
pkgrel=2
pkgdesc="A small utility which generates Go code from any file"
url="https://github.com/jteeuwen/go-bindata"
arch="all"
license="CC0-1.0"
makedepends="go"
options="!check" # No test suite
source="go-bindata-$pkgver.tar.gz::https://github.com/jteeuwen/go-bindata/archive/$_hash.tar.gz
	go-remove-runtime.patch"
builddir="$srcdir/src/github.com/jteeuwen/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir"/$pkgname-$_hash "$builddir"/
	default_prepare
}

build() {
	cd "$builddir"/$pkgname
	export GOPATH="$srcdir"
	go build -v -o bin/$pkgname
}

package() {
	install -Dm 755 "$builddir/$pkgname"/bin/go-bindata \
		"$pkgdir"/usr/bin/go-bindata
}

sha512sums="ed1d2fd1c5a833b6efdc731eb43f72fc072a701c447a926ad6c1f9be3c0f1ed92c689639d02a288230a49d53795f41092deab132389871a5b9f79abdc525fc43  go-bindata-20151023.tar.gz
0d8b16b3384048e1c1d168b228c293f86a06a50304e49657545770a445496acbca79670441bb14464a306a1efb94bdb371aabb1e58969b45a40fcfbb1870d9dc  go-remove-runtime.patch"