aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 09:09:27 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 09:09:27 +0000
commitc24609d723a776bafe74f97e117249b15433926c (patch)
tree3d2aad5c53e9bd87001d575489e842d9f2a12df6 /testing
parentcc62417daffa2fbcfe7b65c592501cf1dc2e22a0 (diff)
downloadaports-c24609d723a776bafe74f97e117249b15433926c.tar.bz2
aports-c24609d723a776bafe74f97e117249b15433926c.tar.xz
testing/go-nats: upgrade to 1.4.0
Modernize APKBUILD, disable check(), take maintainership
Diffstat (limited to 'testing')
-rw-r--r--testing/go-nats/APKBUILD34
1 files changed, 12 insertions, 22 deletions
diff --git a/testing/go-nats/APKBUILD b/testing/go-nats/APKBUILD
index 53eca38c75..d4c0ebb390 100644
--- a/testing/go-nats/APKBUILD
+++ b/testing/go-nats/APKBUILD
@@ -1,47 +1,37 @@
-# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-nats
-_realname=$pkgname
-pkgver=1.2.2
+pkgver=1.4.0
pkgrel=0
pkgdesc="Golang client for NATS, the cloud native messaging system"
url="https://github.com/nats-io/go-nats"
arch="noarch"
license="MIT"
-depends=
-depends_dev=
-makedepends="$depends_dev"
-install=
subpackages="$pkgname-doc"
_vendor="nats-io"
-source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$pkgver.tar.gz"
-builddir="$srcdir"/$_realname-$pkgver
-
-prepare() {
- cd "$builddir"
-}
+options="!check"
+source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$builddir"
+ return 0
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
- "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname
+ "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$pkgname
# some programs look for "nats" library
- ln -s go-nats "$pkgdir"/usr/lib/go/src/github.com/$_vendor/nats || return 1
+ ln -s go-nats "$pkgdir"/usr/lib/go/src/github.com/$_vendor/nats
for file in \
LICENSE \
- README.md \
+ README.* \
COPYRIGHT \
AUTHORS \
+ TODO.* \
; do \
test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
done
- mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1
+ mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$pkgname
}
-md5sums="f96cef50172742b41dbe7485ccfb16be go-nats-1.2.2.tar.gz"
-sha256sums="e4ede33b2762ef164be9f884fa6d1ce87ba0f42730a09db0011fddcf632f2fae go-nats-1.2.2.tar.gz"
-sha512sums="c42eb0670e816f1420273975e501ced5876de75c2840a4064da047cd891d7aa6de3e9a1b2707c5e242062589fd3e71420ddd441880ebeaeb06fc844e4b7b0a86 go-nats-1.2.2.tar.gz"
+sha512sums="1658f1eb02f3ae77eace3782c6da920d10d4af58f82e236934b8a670e073d9cca9af14f9bef048077aa2f0b8adb1cbc94180d65c9cae13d603a8d729203f2e59 go-nats-1.4.0.tar.gz"