[arch-commits] Commit in wireguard-lts/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 20:33:00 UTC 2019
Date: Friday, October 11, 2019 @ 20:33:00
Author: heftig
Revision: 515179
0.0.20190913-6: extramodules-lts removal
Modified:
wireguard-lts/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 20:32:58 UTC (rev 515178)
+++ PKGBUILD 2019-10-11 20:33:00 UTC (rev 515179)
@@ -1,32 +1,25 @@
# Maintainer: Christian Hesse <mail at eworm.de>
-pkgname='wireguard-lts'
+pkgname=wireguard-lts
pkgver=0.0.20190913
-pkgrel=5
-_linux_major=4
-_linux_minor=19
+pkgrel=6
+pkgdesc='Wireguard module for LTS Kernel'
+url='https://www.wireguard.com/'
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")
+depends=('linux-lts')
+makedepends=('linux-lts-headers' "wireguard-dkms>=$pkgver")
+conflicts=('wireguard-dkms')
+provides=('WIREGUARD-MODULE')
-_extramodules="extramodules-lts"
+package() {
+ _kernver="$(</usr/src/linux-lts/version)"
-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 *
+ install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 *
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list