aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Preuss <marvin@xsteadfastx.org>2021-10-01 11:25:26 +0200
committerdispatch <dispatch@listserv.local>2021-10-01 09:25:34 +0000
commitc7fd0f869e04593f3a4431c0854663465b0d9bce (patch)
treef416ef810593db5e2ba999aa0e52022c137db5e3
parentb0003df8a439d1b6d6485dd15479e1fb98773cd2 (diff)
downloadaports-patches/3697.tar.gz
aports-patches/3697.tar.bz2
aports-patches/3697.tar.xz
testing/dsnet: new aportpatches/3697
-rw-r--r--testing/dsnet/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/dsnet/APKBUILD b/testing/dsnet/APKBUILD
new file mode 100644
index 0000000000..aa8bd27ece
--- /dev/null
+++ b/testing/dsnet/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
+# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
+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
+"