# Contributor: Carlo Landmeter # 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"