# Contributor: Sören Tempel # Maintainer: Clayton Craft pkgname=delve pkgver=1.21.0 pkgrel=2 pkgdesc="Debugger for the Go programming language" url="https://github.com/go-delve/delve" arch="x86 x86_64 aarch64" license="MIT" makedepends="go" options="net chmod-clean" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/go-delve/delve/archive/refs/tags/v$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { mkdir bin go build -v -trimpath -o bin ./cmd/dlv/... } check() { # TestGeneratedDoc and TestBuild require a proper $GOPATH setup. go test -run '!(^(TestGeneratedDoc|TestBuild)$)' ./cmd/dlv/... } package() { install -Dm755 bin/* -t "$pkgdir"/usr/bin/ # Install additional documentation files. mkdir -p "$pkgdir"/usr/share/doc/$pkgname cp -r Documentation/* "$pkgdir"/usr/share/doc/$pkgname } sha512sums=" 2b2249b14d5565fbb59408251a1272db8e092ab7ac7cb65d33b810b89f1352d3b487a8d582dde8f1102d0362ee142e6106c98cd217c5031c9a09497d20a0cdde delve-1.21.0.tar.gz "