mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-02 14:32:14 +01:00
go recently received a security upgrade to 1.12.8 (f4894bf9) this upgrade fixes various CVEs in go standard libraries, for instance in HTTP/2 functionality. Since go is statically linked packages using this functionality need to be rebuild.
34 lines
879 B
Plaintext
34 lines
879 B
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=drone-cli
|
|
pkgver=1.1.4
|
|
pkgrel=1
|
|
pkgdesc="Drone CLI"
|
|
url="https://github.com/drone/drone-cli"
|
|
arch="all"
|
|
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
|
|
}
|
|
|
|
sha512sums="6a0df849f4086913137e36248925fea70e106b95225708bfd37b9a23199d4bed35c6fa18757311cfe23e8c8eef5d66acde207827a7220cec868ffe515539471f drone-cli-1.1.4.tar.gz"
|