# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=gotestsum
pkgver=1.12.2
pkgrel=1
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="
d931d1996022eb167ca9441e68d470334ee48b8f543fe46d74205a9041ba4ccb9999ba834924e4d6d7948a82aaed0783f73ae467d04518a08421df50abcb95b7  gotestsum-1.12.2.tar.gz
"
