aboutsummaryrefslogtreecommitdiffstats
path: root/community/go-bindata-assetfs/APKBUILD
blob: fc51b451952e98bfe802215eb6a8df1ac013f6a7 (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
# Contributor: Matthias Neugebauer <mtneug@mailbox.org>
# Maintainer: Matthias Neugebauer <mtneug@mailbox.org>
pkgname=go-bindata-assetfs
pkgver=1.0.0
pkgrel=1
pkgdesc="A small utility which generates Go code to serve any file with net/http"
url="https://github.com/elazarl/go-bindata-assetfs"
arch="all"
license="BSD-2-Clause"
depends="go-bindata"
makedepends="go"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/elazarl/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/elazarl/$pkgname"

prepare() {
	default_prepare
	mkdir -p "$srcdir/src/github.com/elazarl"
	mv "$srcdir"/$pkgname-$pkgver "$builddir"/
}

build() {
	cd "$builddir"

	GOPATH="$srcdir" CGO_ENABLED=0 go build -v -o bin/$pkgname ./go-bindata-assetfs
}

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

sha512sums="009111511b10b14e83b166eaf37c36e6fc96097770cd6b1865d034f4e90cc3232930b6f5591ee1a960af46d76a7456a96dcc2ccc112234cb0d382a9f9cc575c2  go-bindata-assetfs-1.0.0.tar.gz"