[arch-commits] Commit in wireguard/repos (2 files)

Christian Hesse eworm at archlinux.org
Fri Sep 13 22:13:17 UTC 2019


    Date: Friday, September 13, 2019 @ 22:13:16
  Author: eworm
Revision: 510414

archrelease: copy trunk to community-testing-x86_64

Added:
  wireguard/repos/community-testing-x86_64/
  wireguard/repos/community-testing-x86_64/PKGBUILD
    (from rev 510413, wireguard/trunk/PKGBUILD)

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Copied: wireguard/repos/community-testing-x86_64/PKGBUILD (from rev 510413, wireguard/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-09-13 22:13:16 UTC (rev 510414)
@@ -0,0 +1,61 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Jason A. Donenfeld <Jason at zx2c4.com>
+
+pkgbase=wireguard
+pkgname=(wireguard-dkms wireguard-tools)
+pkgver=0.0.20190913
+pkgrel=1
+pkgdesc='next generation secure network tunnel'
+arch=('x86_64')
+url='http://www.wireguard.com/'
+license=('GPL')
+makedepends=('git' 'libmnl')
+validpgpkeys=('AB9942E6D4A4CFC3412620A749FC7012A5DE03AE') # Jason A. Donenfeld <Jason at zx2c4.com>
+source=("https://git.zx2c4.com/WireGuard/snapshot/WireGuard-${pkgver}.tar"{.xz,.asc})
+sha256sums=('997327185d2d1b597dc118f737c0c165e2a2c21453387ea02659f1159d148518'
+            'SKIP')
+
+prepare() {
+	cd WireGuard-${pkgver}/
+
+	find contrib/examples/ -name '.gitignore' -delete
+}
+
+build() {
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/
+}
+
+package_wireguard-dkms() {
+	depends=('dkms')
+	provides=('WIREGUARD-MODULE')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/ \
+		DESTDIR="${pkgdir}/" \
+		DKMSDIR="/usr/src/wireguard-${pkgver}/" \
+		dkms-install
+}
+
+package_wireguard-tools() {
+	depends=('libmnl')
+	optdepends=('openresolv: for DNS functionality'
+	            'wireguard-dkms: wireguard module, built by dkms'
+	            'wireguard-arch: wireguard module for linux'
+	            'wireguard-lts: wireguard module for linux-lts')
+
+	cd WireGuard-${pkgver}/
+
+	make -C src/tools/ \
+		DESTDIR="${pkgdir}/" \
+		WITH_BASHCOMPLETION=yes \
+                WITH_WGQUICK=yes \
+                WITH_SYSTEMDUNITS=yes \
+                install
+
+	install -d -m0755 "${pkgdir}"/usr/share/${pkgbase}/
+	cp -r contrib/examples/ "${pkgdir}"/usr/share/${pkgbase}/
+}
+


More information about the arch-commits mailing list