aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lab
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2019-07-25 08:46:51 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2019-07-25 08:50:15 +0000
commit93b9ae58c9218be06c6c057b03129efa3399941b (patch)
tree611d6cf6c5f76f173f7f51ad2b5f0702bdecbf0b /testing/lab
parentab31b82eea1ccc11b9613e114f25b2f84d0002c1 (diff)
downloadaports-93b9ae58c9218be06c6c057b03129efa3399941b.tar.bz2
aports-93b9ae58c9218be06c6c057b03129efa3399941b.tar.xz
testing/lab: new aport
Diffstat (limited to 'testing/lab')
-rw-r--r--testing/lab/APKBUILD46
1 files changed, 46 insertions, 0 deletions
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 <clandmeter@alpinelinux.org>
+# 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"