From bd56fc8d9773c387bb3e7ad03485631a0c4b4094 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Wed, 8 Mar 2017 20:14:44 -0500 Subject: community/gomplate: move from testing --- community/gomplate/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ testing/gomplate/APKBUILD | 44 -------------------------------------------- 2 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 community/gomplate/APKBUILD delete mode 100644 testing/gomplate/APKBUILD 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 +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" diff --git a/testing/gomplate/APKBUILD b/testing/gomplate/APKBUILD deleted file mode 100644 index e4d64d6fed..0000000000 --- a/testing/gomplate/APKBUILD +++ /dev/null @@ -1,44 +0,0 @@ -# Maintainer: Dave Henderson -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" -- cgit v1.2.3