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

Jan Steffens heftig at archlinux.org
Sat Sep 26 23:48:14 UTC 2020


    Date: Saturday, September 26, 2020 @ 23:48:14
  Author: heftig
Revision: 396692

archrelease: copy trunk to testing-x86_64

Added:
  wireguard-lts/repos/testing-x86_64/
  wireguard-lts/repos/testing-x86_64/PKGBUILD
    (from rev 396691, wireguard-lts/trunk/PKGBUILD)

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

Copied: wireguard-lts/repos/testing-x86_64/PKGBUILD (from rev 396691, wireguard-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-09-26 23:48:14 UTC (rev 396692)
@@ -0,0 +1,34 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=wireguard-lts
+pkgver=1.0.20200908
+pkgrel=6
+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)"
+
+    fakeroot 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 {} +
+}
+
+
+
+



More information about the arch-commits mailing list