Subject: [PATCH v2] testing/dsnet: new aport

From: Marvin Preuss <[email-masked]>
Date: Fri, 1 Oct 2021 14:01:52 +0200

changed pkgdesc according to https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/26020#note_183033

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

diff --git a/testing/dsnet/APKBUILD b/testing/dsnet/APKBUILD
new file mode 100644
index 0000000000..12fe7622e6
--- /dev/null
+++ b/testing/dsnet/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Marvin Preuss <[email-masked]>
+# Maintainer: Marvin Preuss <[email-masked]>
+pkgname=dsnet
+pkgver=0.6
+_rev=0098a226d8e5087f0ea328225bf96a3036422b90 # used for version command
+pkgrel=0
+pkgdesc="fast command to manage a centralised wireguard VPN"
+url="https://github.com/naggie/dsnet"
+arch="all"
+license="MIT"
+makedepends="go"
+options="!check chmod-clean" # no tests available
+source="$pkgname-$pkgver.tar.gz::https://github.com/naggie/dsnet/archive/refs/tags/v$pkgver.tar.gz"
+
+export GOPATH="$srcdir"
+export GOFLAGS="$GOFLAGS -modcacherw"
+
+build() {
+	go build \
+		-ldflags "
+		-X \"github.com/naggie/dsnet.GIT_COMMIT=$_rev\" \
+		-X \"github.com/naggie/dsnet.VERSION=$pkgver\" \
+		-X \"github.com/naggie/dsnet.BUILD_DATE=$(date)\" \
+		" \
+		cmd/dsnet.go
+}
+
+package() {
+	install -Dm755 $pkgname "$pkgdir"/usr/bin/"$pkgname"
+}
+sha512sums="
+87ba54dbc30e5ba28a980e7c18f6f25ee460177dff596854bb84176e97a91e4a2bac74bb48c309ed0a0c1cac67ae7d86786b95d556fe12294c50ab5b19c1fc14  dsnet-0.6.tar.gz
+"
-- 
2.33.0