2022-05-12 02:01:31 +02:00

34 lines
795 B
Plaintext

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=drone-cli
pkgver=1.5.0
pkgrel=3
pkgdesc="Drone CLI"
url="https://github.com/drone/drone-cli"
license="Apache-2.0"
arch="all"
makedepends="go"
source="drone-cli-$pkgver.tar.gz::https://github.com/drone/drone-cli/archive/v$pkgver.tar.gz"
build() {
export GOPATH="$srcdir"
go build -ldflags "-X main.version=$pkgver" -o bin/drone ./drone
}
check() {
go test ./...
}
package() {
install -Dm755 "$builddir"/bin/drone "$pkgdir"/usr/bin/drone
}
cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="
7406a4a97249b84dec6b0aaac2124cb3b907b7f5c08a80084f254614a9c7ee16d5a5541cb43b30e78bb6661906e9f170919ff0d8daf934642e54749d1990222d drone-cli-1.5.0.tar.gz
"