aboutsummaryrefslogtreecommitdiff
path: root/community/ginkgo/APKBUILD
blob: aaee09c2278378e992b7fedae4cbb23f7c7239a3 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=ginkgo
pkgver=1.14.2
pkgrel=0
pkgdesc="BDD-style Go testing framework"
url="https://onsi.github.io/ginkgo/"
options="chmod-clean"
arch="all !armhf !mips !mips64" # armhf: test failures; mips: limited by go
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/onsi/ginkgo/archive/v$pkgver.tar.gz
	pie-and-race-conflict.patch
	"

export GOPATH="$srcdir"

build() {
	go build -v -ldflags "-s -w" -o bin/ginkgo ./ginkgo
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/ginkgo "$pkgdir"/usr/bin/ginkgo
}

cleanup_srcdir() {
	go clean -modcache
	default_cleanup_srcdir
}

sha512sums="202cc81db7fb86409faa5e1ead4f55ed3aa29d51611a2f0ec9de73a645e10e3f6efacbac44b72d548fb229c75dd17f1e12bdb46c7c8ba0d3589531f7cabf251d  ginkgo-1.14.2.tar.gz
6d8a1ad1160ccede8eeda204277bb974b9a678efaa5624ab03d8eb204202c26c60e37b3aadd6e6368ac2d57cd073720f9faf4e397bcebb50bc643f680ca45534  pie-and-race-conflict.patch"