# Contributor: Henrik Riomar # Maintainer: Henrik Riomar pkgname=nats-server pkgver=2.9.21 pkgrel=0 pkgdesc="High-Performance server for NATS.io" url="https://github.com/nats-io/nats-server" arch="all !x86 !armv7 !armhf !s390x !ppc64le" # limited by failing check() license="Apache-2.0" makedepends="go" source="https://github.com/nats-io/nats-server/archive/v$pkgver/nats-server-$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build } check() { # skip logger due to that it needs syslog # skip other failing tests (due to -buildmode=pie and some timeouts) # we want wordsplitting disable SC2046 # shellcheck disable=SC2046 go test -p=1 -count=1 -vet=off -timeout=30m -failfast $(go list ./... | grep -v \ -e 'logger$' \ -e 'server$' \ -e 'server/pse$' \ -e 'test$' ) } package() { install -Dm755 nats-server "$pkgdir"/usr/bin/nats-server } sha512sums=" 4f9498027146a3988c1a60a2548fd034da3c4cc89a9d92b289985af273e4e0dadae58acbe9a6307a63c98a25335deb5884f0c6af1d98b164d1ce1a0b3094e4c6 nats-server-2.9.21.tar.gz "