From 27bde63026102059c4aff7e9c3149a91f2fd9b83 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 27 Feb 2019 10:03:52 +0000 Subject: testing/drone: new aport This is a first step at adding drone to aports and is no way a finished product. --- testing/drone/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 testing/drone/APKBUILD (limited to 'testing/drone') diff --git a/testing/drone/APKBUILD b/testing/drone/APKBUILD new file mode 100644 index 0000000000..d96045ea75 --- /dev/null +++ b/testing/drone/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Carlo Landmeter +# 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" -- cgit v1.2.3