summaryrefslogblamecommitdiff
path: root/user/wireguard-module/APKBUILD
blob: 2e4a7e74f6de75d1250c7e5d8df3029eab1d6ee6 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                            

                                                             
                     
                   
        

                                     






                                                                    

                                              


                                                                          

                      
                                                                                 



                      
                                                                                                                     

 
                                                                                                                                                                            
# Contributor: Luis Ressel <aranea@aixah.de>
# Maintainer: Luis Ressel <aranea@aixah.de>
# KEEP THIS IN SYNC with the other wireguard-module packages.
_kflavour=""
_kver="4.14.138-mc15"
pkgver=0.0.20191012
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="b15424036f26298d8511ca0d0d6a485ff0992726d61fabff8bf6dd64d0a65423bf901e5eb14d3080372017390b05d25faff89a72128932c7408f93f59165c321  WireGuard-0.0.20191012.tar.xz"