diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-02-14 11:34:53 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-02-14 11:35:32 +0000 |
commit | 4296241ec5e4434d7086effe32f3410bf2534b43 (patch) | |
tree | 53fb26bba501cd2c284272190df21cda17aa4ddd /testing/drone-cli | |
parent | a5f99d744599d40016d97e1ea3dbf2a753759370 (diff) | |
download | aports-4296241ec5e4434d7086effe32f3410bf2534b43.tar.bz2 aports-4296241ec5e4434d7086effe32f3410bf2534b43.tar.xz |
testing/drone-cli: new aport
Diffstat (limited to 'testing/drone-cli')
-rw-r--r-- | testing/drone-cli/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/drone-cli/APKBUILD b/testing/drone-cli/APKBUILD new file mode 100644 index 0000000000..eea9a04312 --- /dev/null +++ b/testing/drone-cli/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: +pkgname=drone-cli +pkgver=1.0.6 +pkgrel=0 +pkgdesc="Drone CLI" +url="https://github.com/drone/drone-cli" +arch="all" +license="Apache-2.0" +options="!check" +makedepends="go" +source="drone-cli-$pkgver.tar.gz::https://github.com/drone/drone-cli/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/github.com/drone/$pkgname" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ + cd "$builddir" + default_prepare +} + +build() { + cd "$builddir" + export GOPATH="$srcdir" + go build -ldflags "-X main.version=${pkgver}" -o bin/drone ./drone +} + +package() { + install -Dm755 "$builddir"/bin/drone "$pkgdir"/usr/bin/drone +} + +sha512sums="cf4f78eb4d16cb52c81a049485b6341ee0b6b400f1219f232408dcb39f6b783f647d44f50cc0def9996787d06dc4c458f29d9bf8c44ba1f9b9e101104863374c drone-cli-1.0.6.tar.gz" |