diff options
author | Dave Henderson <dhenderson@gmail.com> | 2017-01-12 22:48:43 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-02-27 05:56:45 +0000 |
commit | fb8794efbe6d82492a0adaec70c880e10c1e67f0 (patch) | |
tree | 372ed3ba4865a379c2843ece9a0161e8ba1ac944 /testing | |
parent | fcd6f5b37c7c502e8685c7c898ac7aecc0a31b74 (diff) | |
download | aports-fb8794efbe6d82492a0adaec70c880e10c1e67f0.tar.bz2 aports-fb8794efbe6d82492a0adaec70c880e10c1e67f0.tar.xz |
testing/gomplate: new aport
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/gomplate/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/gomplate/APKBUILD b/testing/gomplate/APKBUILD new file mode 100644 index 0000000000..67b42414b9 --- /dev/null +++ b/testing/gomplate/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Dave Henderson <dhenderson@gmail.com> +pkgname=gomplate +_repo="github.com/hairyhenderson/$pkgname" +pkgver=1.3.0 +pkgrel=0 +commit=8b291f3 +pkgdesc="A versatile Go template processor." +url="https://$_repo" +arch="all" +license="MIT" +depends="ca-certificates" +makedepends="go" +install="" +source="$pkgname-$pkgver.tar.gz::$url/archive/$commit.tar.gz" + +_godir="${srcdir}/go" +builddir="${_godir}/src/${_repo}" + +prepare() { + default_prepare || return 1 + mkdir -p $(dirname ${builddir}) + mv ${srcdir}/$pkgname-${commit}* ${builddir} || return 1 +} + +build() { + cd ${builddir} + export GOPATH="${_godir}" + export VERSION="${pkgver}" + export COMMIT="${commit}" + + make build +} + +package() { + cd ${builddir} + install -Dm755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1 +} + +md5sums="5b58b9c16895b012bd5b877f77e44467 gomplate-1.3.0.tar.gz" +sha256sums="fb8ac6f813cda0b74af75488a2fb5db1ddb9ed28dfbbd79aa40a8a6b9e9d5b3f gomplate-1.3.0.tar.gz" +sha512sums="152862a02b30f0b5fb68cd8b9ecb37543ad914f59d63ec79d269e51faccd487a602f7a8ec1a7602ed27f2e436a00e4c7d3abac217e1e2e594c20223e798e907d gomplate-1.3.0.tar.gz" |