aboutsummaryrefslogtreecommitdiffstats
path: root/community/gomplate/APKBUILD
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-06-01 13:07:06 -0400
committerKevin Daudt <kdaudt@alpinelinux.org>2019-06-01 21:15:36 +0000
commit6c73f5160f9e9415daafd5c2626d550306898b75 (patch)
treef6ac855c100eabba066da866e277c675a8fbc1d8 /community/gomplate/APKBUILD
parent7561c8b3488b2762d96084fa84d5fa652def4156 (diff)
downloadaports-6c73f5160f9e9415daafd5c2626d550306898b75.tar.bz2
aports-6c73f5160f9e9415daafd5c2626d550306898b75.tar.xz
community/gomplate: modernize
Signed-off-by: Dave Henderson <dhenderson@gmail.com> Closes GH-8360
Diffstat (limited to 'community/gomplate/APKBUILD')
-rw-r--r--community/gomplate/APKBUILD12
1 files changed, 3 insertions, 9 deletions
diff --git a/community/gomplate/APKBUILD b/community/gomplate/APKBUILD
index 7ccd28e751..ad71115d63 100644
--- a/community/gomplate/APKBUILD
+++ b/community/gomplate/APKBUILD
@@ -14,13 +14,12 @@ builddir="$srcdir/src/$_goname"
prepare() {
mkdir -p "${builddir%/*}"
- mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1
+ mv "$srcdir"/$pkgname-$pkgver "$builddir"/
default_prepare
}
build() {
- cd "$builddir"
make build \
GOPATH="$srcdir" \
VERSION="$pkgver" \
@@ -28,17 +27,12 @@ build() {
}
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
+ GOPATH="$srcdir" go test -v
}
package() {
- cd "$builddir"
- install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1
+ install -D -m 755 bin/gomplate "$pkgdir"/usr/bin/gomplate
}
sha512sums="d8af1da29246ed74eaa546ecd51b78eaad8375111093dc21c703ebfcd2ee6ff902ee36a9705cd7ae61450ab361f7b66edfeadad88c51110e312eb8d05ae8ced0 gomplate-3.5.0.tar.gz"