aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Preuss <marvin@xsteadfastx.org>2021-08-16 11:09:36 +0200
committerdispatch <dispatch@listserv.local>2021-08-16 09:09:47 +0000
commitdcb0689362742c6e5585ee819c2a3fea87deb6cf (patch)
treecd8d9def1ae9bde850ce3c1595ac5fd64d79a1ee
parentbb46f86269e8e4c27659836a0eb6bc5c89386edd (diff)
downloadaports-dcb0689362742c6e5585ee819c2a3fea87deb6cf.tar.gz
aports-dcb0689362742c6e5585ee819c2a3fea87deb6cf.tar.bz2
aports-dcb0689362742c6e5585ee819c2a3fea87deb6cf.tar.xz
testing/ali: new aportpatches/3599
Forgot to set "-mocacherw", so the src dir can be removed.
-rw-r--r--testing/ali/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/ali/APKBUILD b/testing/ali/APKBUILD
new file mode 100644
index 0000000000..95616fdd57
--- /dev/null
+++ b/testing/ali/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
+# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
+pkgname=ali
+pkgver=0.7.2
+pkgrel=0
+pkgdesc="Generate HTTP load and plot the results in real-time"
+url="https://github.com/nakabonne/ali"
+arch="all"
+license="MIT"
+makedepends="go"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nakabonne/ali/archive/refs/tags/v$pkgver.tar.gz"
+
+export GOPATH="$srcdir"
+export GOFLAGS="-modcacherw"
+
+build() {
+ go build \
+ -ldflags "
+ -X \"main.version=$pkgver\" \
+ -X \"main.date=$(date --utc +%Y-%m-%dT%H:%M:%SZ)\" \
+ -X \"main.commit=none\" \
+ "
+}
+
+check() {
+ go test ./...
+}
+
+package() {
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/"$pkgname"
+}
+sha512sums="
+8f20135ce212f508352b39afe6db8499242116a28f9654d908ab25c5b690c5b455c31d0d8eeb91e3251cf979cdad8805349c525dffee37f2e600f9f844d9c456 ali-0.7.2.tar.gz
+"