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

Jan Steffens heftig at archlinux.org
Wed Dec 18 20:46:32 UTC 2019


    Date: Wednesday, December 18, 2019 @ 20:46:32
  Author: heftig
Revision: 538184

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: wireguard-arch/repos/community-testing-x86_64/PKGBUILD (from rev 538183, wireguard-arch/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-12-18 20:46:32 UTC (rev 538184)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=wireguard-arch
+pkgver=0.0.20191212
+pkgrel=4
+pkgdesc='Wireguard module for Arch Kernel'
+url='https://www.wireguard.com/'
+arch=('x86_64')
+license=('GPL')
+makedepends=('linux-headers' "wireguard-dkms>=$pkgver")
+conflicts=('wireguard-dkms')
+provides=('WIREGUARD-MODULE')
+
+build() {
+    _kernver=$(</usr/src/linux/version)
+
+    dkms build --dkmstree "$srcdir" -m wireguard/$pkgver -k $_kernver
+}
+
+package() {
+  depends=('linux')
+
+  _kernver="$(</usr/src/linux/version)"
+
+  install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \
+    wireguard/${pkgver}/$_kernver/$CARCH/module/*
+
+  # compress each module individually
+  find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+}
+
+# vim:set sw=2 et:


More information about the arch-commits mailing list