aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/gomplate/APKBUILD35
1 files changed, 16 insertions, 19 deletions
diff --git a/testing/gomplate/APKBUILD b/testing/gomplate/APKBUILD
index 5a3edd21b0..cbdf3bd7f5 100644
--- a/testing/gomplate/APKBUILD
+++ b/testing/gomplate/APKBUILD
@@ -1,38 +1,35 @@
# Maintainer: Dave Henderson <dhenderson@gmail.com>
pkgname=gomplate
-_repo="github.com/hairyhenderson/$pkgname"
+_goname="github.com/hairyhenderson/$pkgname"
pkgver=1.5.0
-pkgrel=1
-pkgdesc="A versatile Go template processor."
-url="https://$_repo"
+pkgrel=0
+pkgdesc="A versatile Go template processor"
+url="https://github.com/hairyhenderson/gomplate"
arch="all"
license="MIT"
depends="ca-certificates"
makedepends="go"
-install=""
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-
-_godir="${srcdir}/go"
-builddir="${_godir}/src/${_repo}"
+builddir="$srcdir/src/$_goname"
prepare() {
- mkdir -p $(dirname ${builddir})
- mv ${srcdir}/$pkgname-$pkgver ${builddir} || return 1
- default_prepare || return 1
+ mkdir -p "${builddir%/*}"
+ mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1
+
+ default_prepare
}
build() {
- cd ${builddir}
- export GOPATH="${_godir}"
- export VERSION="${pkgver}"
- export COMMIT="unknown"
-
- make build
+ cd "$builddir"
+ make build \
+ GOPATH="$srcdir" \
+ VERSION="$pkgver" \
+ COMMIT="unknown"
}
package() {
- cd ${builddir}
- install -Dm755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1
+ cd "$builddir"
+ install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1
}
sha512sums="5fc19db209751dd7f9a7f12c99f188a8a47d604c42f24eb6b3ccd55f523e691ddd2d0db3eb23e1e0bdde9b25dcb2b8a53b088d68e5a697fa356bd08ea7ca78a9 gomplate-1.5.0.tar.gz"