mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-18 04:02:30 +02:00
39 lines
967 B
Plaintext
39 lines
967 B
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=drone-cli
|
|
pkgver=1.2.2
|
|
pkgrel=0
|
|
pkgdesc="Drone CLI"
|
|
url="https://github.com/drone/drone-cli"
|
|
arch="all !mips64" # blocked by go
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
source="drone-cli-$pkgver.tar.gz::https://github.com/drone/drone-cli/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/src/github.com/drone/$pkgname"
|
|
|
|
prepare() {
|
|
mkdir -p ${builddir%/*}
|
|
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
|
|
default_prepare
|
|
}
|
|
|
|
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="bf5090469704b2cd74373db3c15e97b0f8fec4458bdba79f838810cec213579873b9ea3c8e0e903b2d0e5f09520e6fb6d207d41461cec607ccda584c300a7379 drone-cli-1.2.2.tar.gz"
|