blob: 570c4d814d2176dd0d5daed30995374b9bcd8217 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
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
"
|