# Template file for 'batman-adv'
pkgname=batman-adv
version=2018.3
revision=1
short_desc="B.A.T.M.A.N. routing protocol kernel module"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2.0-or-later, MIT"
homepage="http://www.open-mesh.org/"
distfiles="http://downloads.open-mesh.org/batman/releases/batman-adv-${version}/batman-adv-${version}.tar.gz"
checksum=33f3f942203732e0568a6bc0226a0fe8eb147c961f0d0c13b2e6b16237d412ff

dkms_modules="batman-adv ${version}"
depends="dkms"

do_install() {
	vmkdir usr/src/${pkgname}-${version}
	cp -r * $DESTDIR/usr/src/${pkgname}-${version}
	vcopy ${FILESDIR}/dkms.conf usr/src/${pkgname}-${version}
	vlicense LICENSES/preferred/MIT
}
