diff options
author | Dave Henderson <dhenderson@gmail.com> | 2017-03-08 20:14:44 -0500 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-17 20:50:12 +0100 |
commit | bd56fc8d9773c387bb3e7ad03485631a0c4b4094 (patch) | |
tree | 181ede19e9db98d0aa32c44c531c70a4c3d81008 /community/gomplate | |
parent | 9c02765c70f461cbf77c4ba35a294b53894a52d0 (diff) | |
download | aports-bd56fc8d9773c387bb3e7ad03485631a0c4b4094.tar.bz2 aports-bd56fc8d9773c387bb3e7ad03485631a0c4b4094.tar.xz |
community/gomplate: move from testing
Diffstat (limited to 'community/gomplate')
-rw-r--r-- | community/gomplate/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/gomplate/APKBUILD b/community/gomplate/APKBUILD new file mode 100644 index 0000000000..e4d64d6fed --- /dev/null +++ b/community/gomplate/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Dave Henderson <dhenderson@gmail.com> +pkgname=gomplate +_goname="github.com/hairyhenderson/$pkgname" +pkgver=1.5.0 +pkgrel=0 +pkgdesc="A versatile Go template processor" +url="https://github.com/hairyhenderson/gomplate" +arch="all" +license="MIT" +depends="ca-certificates" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/$_goname" + +prepare() { + mkdir -p "${builddir%/*}" + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1 + + default_prepare +} + +build() { + cd "$builddir" + make build \ + GOPATH="$srcdir" \ + VERSION="$pkgver" \ + COMMIT="unknown" +} + +check() { + cd "$builddir" + + # Note: make test (that runs go test -race) doesn't work. + GOPATH="$srcdir" go test -v || return 1 + + ./bin/gomplate --help >/dev/null +} + +package() { + cd "$builddir" + install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1 +} + +sha512sums="5fc19db209751dd7f9a7f12c99f188a8a47d604c42f24eb6b3ccd55f523e691ddd2d0db3eb23e1e0bdde9b25dcb2b8a53b088d68e5a697fa356bd08ea7ca78a9 gomplate-1.5.0.tar.gz" |