pmaports/main/wireguard-postmarketos-stable/APKBUILD
Krait Bosheit Takoj 175645e74b
Update APKBUILD
2018-09-04 09:00:57 +02:00

46 lines
No EOL
1.2 KiB
Text

_flavor=postmarketos-stable
_kpkg=linux-$_flavor
_kver=4.18.4
# we must match up _toolsrel with wireguard-tools
_ver=0.0.20180809
_toolsrel=0
_kpkgver="$_kver-r$_kpkgrel"
_toolsver="$_ver-r$toolsrel"
_abi_release=${_kver}
pkgname=wireguard-${_flavor}
pkgver=4.18.4
pkgrel=0
pkgdesc="Next generation secure network tunnel: kernel modules for $_flavor"
arch=all
url='https://www.wireguard.com'
license="GPL-2.0"
depends="linux-postmarketos-stable"
makedepends="linux-postmarketos-stable-dev libmnl-dev libelf-dev elfutils-libelf"
install_if="wireguard-tools=$_toolsver linux-postmarketos-stable=$_kpkgver"
options="!check"
source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$_ver.tar.xz"
builddir="$srcdir"/WireGuard-$_ver
build() {
cd "$builddir"
# only building module: see wireguard-tools for userspace
unset LDFLAGS
make -C src/ \
KERNELDIR=/lib/modules/${_abi_release}/build \
module
}
package() {
cd "$builddir/src"
local module=
for module in *.ko; do
install -v -D -m644 ${module} \
"$pkgdir/lib/modules/$_abi_release/extra/${module}"
done
}
sha512sums="2278cae078cf3ff9e0c43979ff559820d9d99b64c1ccdbc8a7fea3fc1a5fa0818d782a8962aefc07678599cc15f5a4237fd5dd7ffad108d639c39930979e3cc5 WireGuard-0.0.20180809.tar.xz"