aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nsq/APKBUILD
blob: 0a53f8c6ed7a7e9441838fedf3ee4f336e25b52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=nsq
pkgver=1.2.0
pkgrel=1
pkgdesc="A realtime distributed messaging platform"
url="https://nsq.io/"
arch="all !mips !mips64" # blocked by dep
license="MIT"
depends="go"
makedepends="dep"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/nsqio/nsq/archive/v$pkgver.tar.gz
	glibc-test.patch"
builddir="$srcdir/go/src/github.com/nsqio/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir"/$pkgname-$pkgver "$builddir"/
	export GOPATH="$srcdir/go"
	default_prepare
	cd "$builddir" # just created
	dep ensure
}

build() {
	export GOPATH="$srcdir/go"
	make
}

check() {
	./test.sh
}

package() {
	cd build
	for file in *; do
	  install -sD -m 755 "$file" "$pkgdir"/usr/bin/"$file"
	done
}


sha512sums="01ef18775a3ee6688fed2c7b85f35099d6b01e9a2f10813b3baa94a6c5a2974abf70ee8d2c6d5aebb6952825ab0a2f986838d3dc35e7b5e06bef3ffa8c0e7c15  nsq-1.2.0.tar.gz
e0fa26f0a7b412dc4b3e56cb1d557183d86e751862b86f9192fca153232e856713c2cf76f1f063b7595912e4164c7b6e1f33cfec6fab9c7e8e96297646230a22  glibc-test.patch"