From 93b9ae58c9218be06c6c057b03129efa3399941b Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 25 Jul 2019 08:46:51 +0000 Subject: testing/lab: new aport --- testing/lab/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/lab/APKBUILD (limited to 'testing/lab') diff --git a/testing/lab/APKBUILD b/testing/lab/APKBUILD new file mode 100644 index 0000000000..c4bc4cf33b --- /dev/null +++ b/testing/lab/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname="lab" +pkgver="0.16.0" +pkgrel=0 +pkgdesc="A Git Wrapper for GitLab" +url="https://zaquestion.github.io/lab/" +arch="all" +license="CC0-1.0" +depends="git" +makedepends="go" +checkdepends="bash" +source="lab-$pkgver.tar.gz::https://github.com/zaquestion/lab/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/github.com/zaquestion/$pkgname" +options="net !check" + +export GOPATH="$srcdir" +export CGO_ENABLED=0 + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ + default_prepare +} + +build() { + GO111MODULE=on go build -ldflags "-X main.version=$pkgver" -o bin/$pkgname +} + +package() { + install -Dm755 "$builddir"/bin/$pkgname \ + "$pkgdir"/usr/bin/$pkgname +} + +check() { + # this is disabled cause it tries to clone from + # gitlab.com ssh repo without having a host key + make test +} + +cleanup_srcdir() { + go clean -modcache + default_cleanup_srcdir +} + +sha512sums="8036dd3921f2e02433274a4e3dc215e8afc604c385753105c8640f2795f4566641a30a27ce8ddb99496bab5101e573a7607ca3990c4e6587834a6ecf061e92f2 lab-0.16.0.tar.gz" -- cgit v1.2.3