db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / wireguard-lts / trunk / PKGBUILD
blobfde9c216ed3af8f2d585fb79a5dd95508c3f5869
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=wireguard-lts
4 pkgver=1.0.20210124
5 pkgrel=8
6 pkgdesc='Wireguard module for LTS Kernel'
7 url='https://www.wireguard.com/'
8 arch=('x86_64')
9 license=('GPL')
10 makedepends=('linux-lts-headers' "wireguard-dkms=$pkgver")
11 conflicts=('wireguard-dkms')
12 provides=('WIREGUARD-MODULE')
14 build() {
15     _kernver="$(</usr/src/linux-lts/version)"
17     fakeroot dkms build --dkmstree "$srcdir" -m wireguard/$pkgver -k $_kernver
20 package() {
21   depends=('linux-lts')
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 {} +