mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-07 09:41:39 +01:00
37 lines
913 B
Plaintext
37 lines
913 B
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=drone-cli
|
|
pkgver=1.5.0
|
|
pkgrel=10
|
|
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
|
|
}
|
|
|
|
cleanup_srcdir() {
|
|
go clean -modcache
|
|
default_cleanup_srcdir
|
|
}
|
|
|
|
sha512sums="
|
|
7406a4a97249b84dec6b0aaac2124cb3b907b7f5c08a80084f254614a9c7ee16d5a5541cb43b30e78bb6661906e9f170919ff0d8daf934642e54749d1990222d drone-cli-1.5.0.tar.gz
|
|
"
|