aboutsummaryrefslogblamecommitdiffstats
path: root/testing/drone/APKBUILD
blob: f2eb6c816664be1be07d05eb629507bbd585a964 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                           
            
        






                                                        



                                



                    
                                                                                        

                       

         
                                 
                                                                          














                                                             




                              
                                                                                                                                                                 
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=drone
pkgver=1.6.4
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="e80980175686481e0a55c44df28a03caaca3ce85159d0265d005602e8ba85418b3ff4b5910049f0431af87d1071848e0834bee84f1da7acc0d6313d15e64d91a  drone-1.6.4.tar.gz"