Commit 4296241e authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

testing/drone-cli: new aport

parent a5f99d74
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=drone-cli
pkgver=1.0.6
pkgrel=0
pkgdesc="Drone CLI"
url="https://github.com/drone/drone-cli"
arch="all"
license="Apache-2.0"
options="!check"
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"/
cd "$builddir"
default_prepare
}
build() {
cd "$builddir"
export GOPATH="$srcdir"
go build -ldflags "-X main.version=${pkgver}" -o bin/drone ./drone
}
package() {
install -Dm755 "$builddir"/bin/drone "$pkgdir"/usr/bin/drone
}
sha512sums="cf4f78eb4d16cb52c81a049485b6341ee0b6b400f1219f232408dcb39f6b783f647d44f50cc0def9996787d06dc4c458f29d9bf8c44ba1f9b9e101104863374c drone-cli-1.0.6.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment