summaryrefslogtreecommitdiff
path: root/libre/wireguard-lts
diff options
context:
space:
mode:
authoroaken-source <oaken-source@parabola.nu>2020-01-31 11:22:08 +0100
committeroaken-source <oaken-source@parabola.nu>2020-01-31 11:22:08 +0100
commita93b5ba53bd85d31de711ba4c54d599668fbc032 (patch)
treebaa871c0a85bb7c12820fc642a19309fb3174fba /libre/wireguard-lts
parentcfd25dec18b1a1735f56513533840faf7b14d54e (diff)
downloadabslibre-a93b5ba53bd85d31de711ba4c54d599668fbc032.tar.gz
abslibre-a93b5ba53bd85d31de711ba4c54d599668fbc032.tar.bz2
abslibre-a93b5ba53bd85d31de711ba4c54d599668fbc032.zip
libre/wireguard, libre/wireguard-lts: added
Diffstat (limited to 'libre/wireguard-lts')
-rw-r--r--libre/wireguard-lts/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/wireguard-lts/PKGBUILD b/libre/wireguard-lts/PKGBUILD
new file mode 100644
index 000000000..562c0354e
--- /dev/null
+++ b/libre/wireguard-lts/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer (Arch): Christian Hesse <mail@eworm.de>
+# Contributor: Andreas Grapentin <andreas@grapentin.org>
+
+_basekernel=4.19.97-1
+
+pkgname=wireguard-lts
+_pkgver_x86_64=0.0.20200128
+_pkgver_i686=0.0.20200105
+_pkgver_armv7h=0.0.20200128
+eval "pkgver=\$_pkgver_${CARCH}"
+pkgrel=1
+pkgrel+=.parabola1.basekernel${_basekernel%-*}
+pkgdesc='Wireguard module for LTS Kernel'
+pkgdesc+=' (built for the linux-libre-lts kernel package)'
+url='https://www.wireguard.com/'
+arch=('x86_64')
+arch+=('i686' 'armv7h')
+license=('GPL')
+makedepends=(linux-libre-lts-headers=${_basekernel%-*} libelf "wireguard-dkms>=$pkgver")
+conflicts=('wireguard-dkms')
+provides=('WIREGUARD-MODULE')
+
+build() {
+ _kernver=$(</usr/src/linux-libre-lts/version)
+
+ dkms build --dkmstree "$srcdir" -m wireguard/$pkgver -k $_kernver
+}
+
+package() {
+ depends=(linux-libre-lts=${_basekernel%-*})
+
+ _kernver="$(</usr/src/linux-libre-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: