mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 23:11:36 +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.
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=drone
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc="Container-Native, Continuous Delivery Platform"
|
|
url="https://drone.io/"
|
|
arch="all"
|
|
license="custom"
|
|
makedepends="go"
|
|
options="!check"
|
|
_commands="
|
|
$pkgname-agent:_pkg
|
|
$pkgname-controller:_pkg
|
|
$pkgname-server:_pkg
|
|
"
|
|
subpackages="
|
|
$_commands
|
|
$pkgname-doc
|
|
"
|
|
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"
|
|
for pkg in $_commands; do
|
|
GO111MODULE=on go build -o bin/${pkg%%:*} ./cmd/${pkg%%:*}
|
|
done
|
|
}
|
|
|
|
package() {
|
|
install -Dm 644 "$builddir"/LICENSE \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
_pkg() {
|
|
pkgdesc="$pkgdesc ($subpkgname)"
|
|
install_if="$pkgname"
|
|
install -Dm775 "$builddir"/bin/$subpkgname \
|
|
"$subpkgdir"/usr/bin/$subpkgname
|
|
}
|
|
|
|
cleanup_srcdir() {
|
|
go clean -modcache
|
|
default_cleanup_srcdir
|
|
}
|
|
|
|
sha512sums="06dce7d8ffc84d9f61d2f40d412b92c63a64628841fcb50d9bb5faf792c07d65c892f461d6b5214c41dc8842ae1d07627980d85a3cc601663c6f956cd9fa0329 drone-1.2.1.tar.gz"
|