diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-05-10 09:56:50 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-05-10 09:57:47 +0000 |
commit | fc54cf96c81a2fa8dab607b78dcc773c5baa6cab (patch) | |
tree | 0bd25b45868f2cd4cc898ab9251088f5c230f71c /testing/drone | |
parent | f473e8e79aa0d77f5cbe37f755081fcf02d8c205 (diff) | |
download | aports-fc54cf96c81a2fa8dab607b78dcc773c5baa6cab.tar.bz2 aports-fc54cf96c81a2fa8dab607b78dcc773c5baa6cab.tar.xz |
testing/drone: upgrade to 1.1.0
Diffstat (limited to 'testing/drone')
-rw-r--r-- | testing/drone/APKBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/testing/drone/APKBUILD b/testing/drone/APKBUILD index d96045ea75..6afbf7e40d 100644 --- a/testing/drone/APKBUILD +++ b/testing/drone/APKBUILD @@ -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" |