mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-27 11:32:08 +01:00
34 lines
795 B
Plaintext
34 lines
795 B
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=drone-cli
|
|
pkgver=1.3.3
|
|
pkgrel=0
|
|
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="
|
|
64e2a2e94d42cb260e52da6139eb2eb5d1cf3848113111f84a07747c5e5772afd0348f9f10fe54ceee1c9a0a1764f77d2485927ff6b356aacb6df450872444c2 drone-cli-1.3.3.tar.gz
|
|
"
|