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

build() {
	export GOPATH="$srcdir/go"
	export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
	go build -ldflags="-s -w" -v -o bin/"$pkgname" ./"$pkgname"
}

package() {
	install -Dm0755 bin/"$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="870f939cfb07b43c54000d39fa37e8151ca5c20d13eac9bde59e7ec3e2693d8386a1ea4b5372171dac42f8a4f69a754445cb9a4fa51a7a7ba9ec54f3e8a2a2f6  go-bindata-3.1.3.tar.gz"