# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=gotestsum
pkgver=1.12.0
pkgrel=2
pkgdesc="Go test runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results"
url="https://github.com/gotestyourself/gotestsum"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/gotestyourself/gotestsum/archive/refs/tags/v$pkgver.tar.gz"
options="net !check" # No check available

build() {
	go build -o dist/gotestsum .
}

package() {
	install -Dm0755 dist/* -t "$pkgdir"/usr/bin
}

sha512sums="
8532b6182e3ae2d73efdd50f2e69bd77869a39876bf50288ce236633bdb09f99c98cf4a6428e955c643b48584a4a7bfd53839ff9630d6ca86c436ffd00c6198d  gotestsum-1.12.0.tar.gz
"
