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

Andreas Radke andyrtr at archlinux.org
Sun May 12 06:50:37 UTC 2019


    Date: Sunday, May 12, 2019 @ 06:50:37
  Author: andyrtr
Revision: 465820

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: wireguard-lts/repos/community-testing-x86_64/PKGBUILD (from rev 465819, wireguard-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-05-12 06:50:37 UTC (rev 465820)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname='wireguard-lts'
+pkgver=0.0.20190406
+pkgrel=5
+_linux_major=4
+_linux_minor=19
+arch=('x86_64')
+url='https://www.wireguard.com/'
+license=('GPL')
+_linux_cur=${_linux_major}.${_linux_minor}
+_linux_next=${_linux_major}.$((_linux_minor + 1))
+makedepends=("linux-lts>=$_linux_cur" "linux-lts<$_linux_next"
+             "linux-lts-headers>=$_linux_cur" "linux-lts-headers<$_linux_next"
+             "wireguard-dkms>=$pkgver")
+
+_extramodules="extramodules-${_linux_major}.${_linux_minor}-lts"
+
+package_wireguard-lts() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Wireguard module for LTS Kernel'
+  license=('GPL')
+  depends=("linux-lts>=$_linux_cur" "linux-lts<$_linux_next")
+  conflicts=('wireguard-dkms')
+  provides=('WIREGUARD-MODULE')
+
+  cd "/var/lib/dkms/wireguard/${pkgver}/$_kernver/$CARCH/module"
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m0644 *
+
+  # compress each module individually
+  find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+}



More information about the arch-commits mailing list