summaryrefslogblamecommitdiff
path: root/user/wireguard-module-power8/APKBUILD
blob: 3d55c8bdd5c30a26fcf7b342421e440ed3b6d03f (plain) (tree)
1
2
3
4
5
6



                                                             
                     
                   














                                                                          

                      
                                                                                 



                      
                                                                                                                     

 
                                                                                                                                                                            
# Contributor: Luis Ressel <aranea@aixah.de>
# Maintainer: Luis Ressel <aranea@aixah.de>
# KEEP THIS IN SYNC with the other wireguard-module packages.
_kflavour="-power8"
_kver="4.14.127-mc14"
pkgver=0.0.20190601
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="ppc64"
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="d667e42b90fbda85b005ae2966689dadc9975c1a53ca5ddfff44214ed55ad7d55d451008c225a4619c834bd7af598af1f127d76a8a3a86cf2e6d886ea0638cf3  WireGuard-0.0.20190601.tar.xz"