Date: Friday, January 10, 2020 @ 19:34:19 Author: eworm Revision: 373143
community2extra: Moving wireguard-lts from community to extra Added: wireguard-lts/ wireguard-lts/repos/ wireguard-lts/trunk/ wireguard-lts/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: wireguard-lts/trunk/PKGBUILD =================================================================== --- wireguard-lts/trunk/PKGBUILD (rev 0) +++ wireguard-lts/trunk/PKGBUILD 2020-01-10 19:34:19 UTC (rev 373143) @@ -0,0 +1,32 @@ +# Maintainer: Christian Hesse <m...@eworm.de> + +pkgname=wireguard-lts +pkgver=0.0.20200105 +pkgrel=2 +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) + + 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 {} + +} + +# vim:set sw=2 et: