[arch-commits] Commit in wireguard-lts/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 25 15:52:58 UTC 2019
Date: Friday, October 25, 2019 @ 15:52:58
Author: heftig
Revision: 519248
0.0.20191012-3: LTS kernel 4.19.80-2
Modified:
wireguard-lts/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-25 15:52:57 UTC (rev 519247)
+++ PKGBUILD 2019-10-25 15:52:58 UTC (rev 519248)
@@ -2,21 +2,28 @@
pkgname=wireguard-lts
pkgver=0.0.20191012
-pkgrel=2
+pkgrel=3
pkgdesc='Wireguard module for LTS Kernel'
url='https://www.wireguard.com/'
arch=('x86_64')
license=('GPL')
-depends=('linux-lts')
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)"
- cd "/var/lib/dkms/wireguard/${pkgver}/$_kernver/$CARCH/module"
- install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 *
+ 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