summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavide Depau2019-12-21 09:22:34 +0100
committerDavide Depau2019-12-21 09:22:34 +0100
commitae5819ac14c4467965c72fb7f93edf7a6612a4ce (patch)
treed0126300307732f06aa7c2ebc58eb21df35ddbe1 /PKGBUILD
downloadaur-wireguard-go-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ad1597c7b06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Davide Depau <davide@depau.eu>
+
+_pkgname=wireguard-go
+pkgname=${_pkgname}-git
+pkgver=v0.0.20191012.13.gddfad45
+pkgrel=1
+pkgdesc="Go userspace implementation of WireGuard"
+arch=('i686' 'pentium4' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
+url="https://git.zx2c4.com/wireguard-go/"
+license=('GPL')
+makedepends=('go')
+provides=("${_pkgname}" "wireguard")
+source=("${_pkgname}::git+https://git.zx2c4.com/wireguard-go.git")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --dirty 2>/dev/null | sed 's/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="$pkgdir"
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+}