# Contributor: Luis Ressel # Maintainer: Luis Ressel # KEEP THIS IN SYNC with the other wireguard-module packages. _kflavour="" _kver="4.14.88-mc13" pkgver=0.0.20190406 pkgrel=0 _pkgname="wireguard-module$_kflavour" pkgname="$_pkgname-$_kver" _pkgreal="WireGuard" pkgdesc="Kernel module for the WireGuard VPN, built for easy-kernel" url="https://www.wireguard.com/" arch="all" options="!check !dbg !strip" # no test suite license="GPL-2.0-only" provides="$_pkgname=$pkgver" depends="easy-kernel$_kflavour-modules-$_kver" makedepends="easy-kernel$_kflavour-src-$_kver" source="https://git.zx2c4.com/WireGuard/snapshot/$_pkgreal-$pkgver.tar.xz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" make -C src LDFLAGS="" KERNELDIR="/usr/src/linux-$_kver$_kflavour" module } package() { cd "$builddir" make -C src DEPMOD=true KERNELDIR="/usr/src/linux-$_kver$_kflavour" INSTALL_MOD_PATH="$pkgdir" module-install } sha512sums="e3035030299f5a6ae3ac0c2e35dc2d54745cda8f31185b21c6590f1ddcc9c7a83bf7b71cc71f6d48ed6dc8f2b31f3c704f8fa85685d4113f4c560f7eba7b7d5e WireGuard-0.0.20190406.tar.xz"