-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
- Loading branch information
1 parent
cec14a0
commit b3176eb
Showing
4 changed files
with
150 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Maintainer: Dave Henderson <dhenderson@gmail.com> | ||
pkgname=gomplate | ||
pkgver={{.version}} | ||
pkgrel=0 | ||
pkgdesc="A versatile Go template processor" | ||
url="https://github.com/hairyhenderson/gomplate" | ||
arch="all" | ||
license="MIT" | ||
depends="ca-certificates" | ||
makedepends="go" | ||
options="net" | ||
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() { | ||
# CGO needs to be able to be enabled for -buildmode=pie, setting it to an | ||
# empty string is a workaround for now. | ||
# See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809 | ||
make build \ | ||
CGO_ENABLED= \ | ||
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="{{.sha512}} gomplate-{{.version}}.tar.gz" |