Subject: [PATCH] testing/ali: new aport

From: Marvin Preuss <[email-masked]>
Date: Mon, 16 Aug 2021 10:07:26 +0200

---
 testing/ali/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/ali/APKBUILD

diff --git a/testing/ali/APKBUILD b/testing/ali/APKBUILD
new file mode 100644
index 0000000000..d687c24422
--- /dev/null
+++ b/testing/ali/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Marvin Preuss <[email-masked]>
+# Maintainer: Marvin Preuss <[email-masked]>
+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"
+
+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
+"
-- 
2.32.0