aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drone/APKBUILD
blob: d96045ea752b67f4389adb67a436984ada8f4f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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"