# Contributor: Carlo Landmeter # Maintainer: pkgname=drone pkgver=1.6.2 pkgrel=0 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" export GOPATH="$srcdir" build() { 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="4c6e43edceb402c90c9c3d294926bd0a6c2756a844f936b93849a6aa8d5053a495a73a9b4a9f2ebbd516089e781cc681342ad12be991911c6884e3bcd8657c0d drone-1.6.2.tar.gz"