[arch-commits] Commit in wireguard-lts/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Mar 30 20:59:50 UTC 2020


    Date: Monday, March 30, 2020 @ 20:59:49
  Author: anthraxx
Revision: 378770

archrelease: copy trunk to staging-x86_64

Added:
  wireguard-lts/repos/staging-x86_64/
  wireguard-lts/repos/staging-x86_64/PKGBUILD
    (from rev 378769, wireguard-lts/trunk/PKGBUILD)

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

Copied: wireguard-lts/repos/staging-x86_64/PKGBUILD (from rev 378769, wireguard-lts/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-03-30 20:59:49 UTC (rev 378770)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=wireguard-lts
+pkgver=0.0.20200318
+pkgrel=5
+pkgdesc='Wireguard module for LTS Kernel'
+url='https://www.wireguard.com/'
+arch=('x86_64')
+license=('GPL')
+makedepends=('linux-lts-headers' "wireguard-dkms=$pkgver")
+conflicts=('wireguard-dkms')
+provides=('WIREGUARD-MODULE')
+
+build() {
+    _kernver=$(</usr/src/linux-lts/version)
+
+    dkms build --dkmstree "$srcdir" -m wireguard/$pkgver -k $_kernver
+}
+
+package() {
+  depends=('linux-lts')
+
+  _kernver="$(</usr/src/linux-lts/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