mirror of
https://aur.archlinux.org/amneziawg-dkms.git
synced 2025-06-23 05:19:58 -07:00
fix build
This commit is contained in:
parent
ad089de727
commit
904146bf25
3
.SRCINFO
3
.SRCINFO
@ -1,7 +1,7 @@
|
|||||||
pkgbase = amneziawg-dkms
|
pkgbase = amneziawg-dkms
|
||||||
pkgdesc = AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard.
|
pkgdesc = AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard.
|
||||||
pkgver = 1.0.20240711
|
pkgver = 1.0.20240711
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/amnezia-vpn/amneziawg-linux-kernel-module
|
url = https://github.com/amnezia-vpn/amneziawg-linux-kernel-module
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPLv2
|
license = GPLv2
|
||||||
@ -11,3 +11,4 @@ pkgbase = amneziawg-dkms
|
|||||||
|
|
||||||
pkgname = amneziawg-dkms
|
pkgname = amneziawg-dkms
|
||||||
depends = dkms
|
depends = dkms
|
||||||
|
depends = wget
|
||||||
|
15
PKGBUILD
15
PKGBUILD
@ -5,14 +5,21 @@ pkgdesc="AmneziaWG is a contemporary version of the popular VPN protocol, WireGu
|
|||||||
url="https://github.com/amnezia-vpn/amneziawg-linux-kernel-module"
|
url="https://github.com/amnezia-vpn/amneziawg-linux-kernel-module"
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
pkgver=1.0.20240711
|
pkgver=1.0.20240711
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
license=('GPLv2')
|
license=('GPLv2')
|
||||||
provides=("AMNEZIAWG-MODULE=${pkgver}")
|
provides=("AMNEZIAWG-MODULE=${pkgver}")
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/archive/refs/tags/v${pkgver}.tar.gz")
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/archive/refs/tags/v${pkgver}.tar.gz")
|
||||||
sha512sums=('0499fc3c29ceaa3e57611fd86c943e57b9621aa2db31f8fdafcfe0ff0dfaf5aa07381d462d9b194c8ea206f5eb9d1160976bfc6d0fdaf112b81b87ad3d391538')
|
sha512sums=('0499fc3c29ceaa3e57611fd86c943e57b9621aa2db31f8fdafcfe0ff0dfaf5aa07381d462d9b194c8ea206f5eb9d1160976bfc6d0fdaf112b81b87ad3d391538')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
depends=("dkms")
|
depends=("dkms" "wget")
|
||||||
cd ${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src
|
cat > "${srcdir}/amneziawg-linux-kernel-module-${pkgver}/kernel-tree-scripts/prepare-sources.sh" <<'EOF'
|
||||||
make DESTDIR=${pkgdir} dkms-install
|
#!/bin/bash -eux
|
||||||
|
kernel="${1%%[^0-9.]*}"
|
||||||
|
kernel_major="${1%%[^0-9]*}"
|
||||||
|
wget "https://cdn.kernel.org/pub/linux/kernel/v${kernel_major}.x/linux-${kernel}.tar.xz" -O- | tar -xvJf - --wildcards linux-${kernel}/drivers/net/wireguard "linux-${kernel}/K*" linux-${kernel}/include/uapi/linux/
|
||||||
|
ln -sf linux-${kernel} kernel;
|
||||||
|
EOF
|
||||||
|
cd ${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src
|
||||||
|
make DESTDIR=${pkgdir} dkms-install
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user