aboutsummaryrefslogtreecommitdiffstats
path: root/community/gomplate/APKBUILD
blob: a7b190424b53b3b7aa9b508d7f2a296a649cd784 (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: Dave Henderson <dhenderson@gmail.com>
pkgname=gomplate
pkgver=3.11.2
pkgrel=0
pkgdesc="A versatile Go template processor"
url="https://github.com/hairyhenderson/gomplate"
arch="all !s390x" # FAIL: TestCreateContext with SIGSEGV
license="MIT"
depends="ca-certificates"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/hairyhenderson/gomplate/archive/v$pkgver.tar.gz"

export GOFLAGS="$GOFLAGS -trimpath -modcacherw"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"

build() {
	make build \
		VERSION="$pkgver" \
		COMMIT="unknown"
}

check() {
	# Note: make test (that runs go test -race) doesn't work.
	go test -v
}

package() {
	install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate
}

sha512sums="
86ec3cd0246f0af57f8c88aaa2cb971bfe3f1c2b869cf9655f49003693bea071cf428b8987a4b2f9ffd5929922bcb98c6f7bd9ef6dcc28b5deadc458e0064fc4  gomplate-3.11.2.tar.gz
"