aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drone/APKBUILD
blob: aef82fe621e4fdbd266c9566c4d382cc3ca23feb (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=drone
pkgver=2.6.0
pkgrel=0
pkgdesc="Container-Native, Continuous Delivery Platform"
url="https://drone.io/"
license="custom"
arch="all"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/drone/drone/archive/v$pkgver.tar.gz"

export GOPATH="$srcdir"

build() {
	GO111MODULE=on go build -o bin/drone-server ./cmd/drone-server
}

check() {
	go test ./...
}

package() {
	install -Dm775 "$builddir"/bin/drone-server \
		"$pkgdir"/usr/bin/drone-server
	install -Dm 644 "$builddir"/LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

cleanup_srcdir() {
	go clean -modcache
	default_cleanup_srcdir
}

sha512sums="
618bf0698ecfeb97760f8c777bcaef200d3d0af252fd01d32bdc8b3b21a38460b883cb828e4784b5d9de2ebd666995aa912254fee1feb4348f83699dd74415ab  drone-2.6.0.tar.gz
"