# Contributor: Carlo Landmeter # Maintainer: Rasmus Thomsen pkgname=drone-cli pkgver=1.7.0 pkgrel=4 pkgdesc="Drone CLI" url="https://github.com/harness/drone-cli" license="Apache-2.0" arch="all" makedepends="go" source="drone-cli-$pkgver.tar.gz::https://github.com/harness/drone-cli/archive/v$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -ldflags "-X main.version=$pkgver" -o bin/drone ./drone } check() { go test ./... } package() { install -Dm755 "$builddir"/bin/drone "$pkgdir"/usr/bin/drone } sha512sums=" d7345d05a15f7ac8f3fc8406652b5303f6139baca49bef9f1c5ed69a61bce44a5154d20ffd9451fbb4d27deb3a3fbeba3ce8bac6370e6b050d8c066648fb2ad0 drone-cli-1.7.0.tar.gz "