# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=ginkgo pkgver=2.11.0 pkgrel=2 pkgdesc="Modern Testing Framework for Go" url="https://onsi.github.io/ginkgo/" license="MIT" arch="all" makedepends="go" source="https://github.com/onsi/ginkgo/archive/v$pkgver/ginkgo-$pkgver.tar.gz tests.patch " export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v -o bin/ginkgo ./ginkgo } check() { # integration tests are slow # CodeLocation tests access local files inside project root, so they don't work with -trimpath GOFLAGS="${GOFLAGS/-trimpath/}" \ ./bin/ginkgo -r --randomize-all --randomize-suites \ --skip-package ./integration } package() { install -Dm755 bin/ginkgo -t "$pkgdir"/usr/bin/ } sha512sums=" bc1e997829eac9bae6e34739bb128ec4682bab98fc397d4d7100c45b074990b9b368a964e57c479c83a419c291d316db954856329bc28e65640d01c23bce7f94 ginkgo-2.11.0.tar.gz 2fe515438583a51dbd92912a761063882788b3d001d37073986d81b9d4076e0381ee1981623cbf603fb70b59efb60bf941d577ecb8d5af97027d1877c7e164cc tests.patch "