Package Details: ztdns-git 0.0.2.r4.g5fdb3bc-1

Git Clone URL: https://aur.archlinux.org/ztdns-git.git (read-only, click to copy)
Package Base: ztdns-git
Description: DNS server for a ZeroTier virtual network.
Upstream URL: https://github.com/uxbh/ztdns
Keywords: dns sdwan zerotier
Licenses: MIT
Conflicts: ztdns
Provides: ztdns
Submitter: L0-FF
Maintainer: L0-FF
Last Packager: L0-FF
Votes: 1
Popularity: 0.000221
First Submitted: 2020-08-22 04:44
Last Updated: 2020-08-22 04:44

Latest Comments

blinx commented on 2020-12-31 16:14

Hi, I think it would be better to let the gopath inside the srcdir to avoid setting it manually.


diff --git a/PKGBUILD b/PKGBUILD
index f70fe21..201ab91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Łaurent ʘ❢Ŧ Ŧough <laurent dot fough at gmail dot com>
 pkgname=ztdns-git
 _pkgname=ztdns
-pkgver=0.0.2.r4.g5fdb3bc
+pkgver=0.0.2.r6.g7380d03
 pkgrel=1
 pkgdesc='DNS server for a ZeroTier virtual network.'
 url='https://github.com/uxbh/ztdns'
@@ -32,11 +32,6 @@ backup=(

 install='ztdns.install'

-
-prepare() {
-   chmod u+w -R "$GOPATH"
-}
-
 pkgver() {
   cd "${srcdir}/${_pkgname}"
   ( set -o pipefail
@@ -47,6 +42,7 @@ pkgver() {
 }

 build() {
+        export GOPATH="$srcdir"/gopath
    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"