testing/drone: upgrade to 1.1.0

This commit is contained in:
Carlo Landmeter 2019-05-10 09:56:50 +00:00
parent f473e8e79a
commit fc54cf96c8

View File

@ -1,9 +1,8 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=drone
pkgver=0.9_git20190226
pkgver=1.1.0
pkgrel=0
_sha=07f7fdd9830c32222db2e880a13d5fbb6ecee1a7
pkgdesc="Container-Native, Continuous Delivery Platform"
url="https://drone.io/"
arch="all"
@ -19,14 +18,15 @@ subpackages="
$_commands
$pkgname-doc
"
source="$pkgname-$pkgver.tar.gz::https://github.com/drone/drone/archive/$_sha.tar.gz"
builddir="$srcdir/$pkgname-$_sha"
source="$pkgname-$pkgver.tar.gz::https://github.com/drone/drone/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
export GOPATH="$srcdir"
build() {
cd "$builddir"
export GO111MODULE=on
for pkg in $_commands; do
go build -o bin/${pkg%%:*} ./cmd/${pkg%%:*}
GO111MODULE=on go build -o bin/${pkg%%:*} ./cmd/${pkg%%:*}
done
}
@ -42,4 +42,9 @@ _pkg() {
"$subpkgdir"/usr/bin/$subpkgname
}
sha512sums="9278f238842bbdb988ecc950e311377aa15385c778df110e06b2452d116d7f93f49ffe663926bb7eb68313aa05a388701bdf734686835a64961302251e395208 drone-0.9_git20190226.tar.gz"
cleanup_srcdir() {
go clean -modcache
default_cleanup_srcdir
}
sha512sums="57f8073b660c2d483a57420cea798d16749e140fcf9e4647ece2bfe73701ab131a9a6cc1b4a87673a28312cea8b9949c3fde7efbea03140d9cff19ee8fa0ce9c drone-1.1.0.tar.gz"