mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-11 08:32:10 +01:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=drone
|
|
pkgver=0.9_git20190226
|
|
pkgrel=0
|
|
_sha=07f7fdd9830c32222db2e880a13d5fbb6ecee1a7
|
|
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/$_sha.tar.gz"
|
|
builddir="$srcdir/$pkgname-$_sha"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
export GO111MODULE=on
|
|
for pkg in $_commands; do
|
|
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
|
|
}
|
|
|
|
sha512sums="9278f238842bbdb988ecc950e311377aa15385c778df110e06b2452d116d7f93f49ffe663926bb7eb68313aa05a388701bdf734686835a64961302251e395208 drone-0.9_git20190226.tar.gz"
|