# Maintainer: Dave Henderson pkgname=gomplate pkgver=3.11.5 pkgrel=3 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="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${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=" 94af458edd053a97ba2335f99ba2617de893a26e482b9b2a0e2216c95963f110e5b38986289e7acb2bb4af674c517938d5c0f735761bed6548e0e9ecdaa06ae7 gomplate-3.11.5.tar.gz "