summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12020-01-05 14:03:51 +0800
committerChocobo12020-01-05 14:13:14 +0800
commit2d807da3fddd3c0402cf487fa64f091cceec89f9 (patch)
treeeda870b14dfe56d6be79a27dd1d26994b073c2d7 /PKGBUILD
parentc141472593030678dc1de95a09d9abec55b0d607 (diff)
downloadaur-wireguard-module-git.tar.gz
upgpkg: wireguard-module-git 0.0.20191226.r4.g7481b6a-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8a87c0d6903..eea3169472e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,35 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=wireguard-module-git
-pkgver=0.0.20191012.r2.g21df5a5
+pkgver=0.0.20191226.r4.g7481b6a
pkgrel=1
pkgdesc="Fast, modern, secure VPN tunnel (kernel module)"
arch=('i686' 'x86_64')
url="https://www.wireguard.com/"
license=('GPL')
depends=('linux>=3.10')
-makedepends=('git' 'linux-headers>=3.10' 'xz')
+makedepends=('git' 'linux-headers>=3.10')
provides=('WIREGUARD-MODULE')
conflicts=('WIREGUARD-MODULE')
-source=("git+https://git.zx2c4.com/WireGuard")
+source=("git+https://git.zx2c4.com/wireguard-linux-compat")
sha256sums=('SKIP')
pkgver() {
- cd "WireGuard"
+ cd "wireguard-linux-compat"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "WireGuard/src"
+ cd "wireguard-linux-compat/src"
make module
}
package() {
- cd "WireGuard/src"
+ cd "wireguard-linux-compat/src"
- _kernver=$(</usr/src/linux/version)
-
- find './' -name '*.ko' -exec xz -0 --force {} \;
- install -Dm644 "wireguard.ko.xz" -t "$pkgdir/usr/lib/modules/$_kernver/extramodules"
+ DEPMOD="true" make module-install INSTALL_MOD_PATH="$pkgdir/usr"
+ find "$pkgdir/usr" -name 'modules.*' -exec rm {} \;
}