diff options
author | Chocobo1 | 2020-01-05 14:03:51 +0800 |
---|---|---|
committer | Chocobo1 | 2020-01-05 14:13:14 +0800 |
commit | 2d807da3fddd3c0402cf487fa64f091cceec89f9 (patch) | |
tree | eda870b14dfe56d6be79a27dd1d26994b073c2d7 | |
parent | c141472593030678dc1de95a09d9abec55b0d607 (diff) | |
download | aur-2d807da3fddd3c0402cf487fa64f091cceec89f9.tar.gz |
upgpkg: wireguard-module-git 0.0.20191226.r4.g7481b6a-1
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 11 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = wireguard-module-git pkgdesc = Fast, modern, secure VPN tunnel (kernel module) - pkgver = 0.0.20191012.r2.g21df5a5 + pkgver = 0.0.20191226.r4.g7481b6a pkgrel = 1 url = https://www.wireguard.com/ arch = i686 @@ -8,11 +8,10 @@ pkgbase = wireguard-module-git license = GPL makedepends = git makedepends = linux-headers>=3.10 - makedepends = xz depends = linux>=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 pkgname = wireguard-module-git @@ -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 {} \; } |