diff options
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" |