1 # Maintainer: Christian Hesse <mail@eworm.de>
6 pkgdesc='Wireguard module for LTS Kernel'
7 url='https://www.wireguard.com/'
10 makedepends=('linux-lts-headers' "wireguard-dkms=$pkgver")
11 conflicts=('wireguard-dkms')
12 provides=('WIREGUARD-MODULE')
15 _kernver="$(</usr/src/linux-lts/version)"
17 fakeroot dkms build --dkmstree "$srcdir" -m wireguard/$pkgver -k $_kernver
23 _kernver="$(</usr/src/linux-lts/version)"
25 install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \
26 wireguard/${pkgver}/$_kernver/$CARCH/module/*
28 # compress each module individually
29 find "$pkgdir" -name '*.ko' -exec xz -T1 {} +