void-packages/srcpkgs/rtl8812au-dkms/template

30 lines
930 B
Bash

# Template file for 'rtl8812au-dkms'
pkgname=rtl8812au-dkms
version=20190903
revision=1
_gitrev=30d47a0a3f43ccb19e8fd59fe93d74a955147bf2
archs=noarch
wrksrc="rtl8812au-${_gitrev}"
depends="dkms"
short_desc="Realtek 8812AU/8821AU USB WiFi driver (DKMS)"
maintainer="Renato Aguiar <renato@renag.me>"
license="GPL-2.0-only"
homepage="http://www.dlink.com"
distfiles="https://github.com/gordboy/rtl8812au/archive/${_gitrev}.tar.gz"
checksum=8893cb02683d253efe6be5a2d1f9ccea778f03b1606043381eaa649e26e8b657
dkms_modules="rtl8812au 5.2.20"
do_install() {
local modname=rtl8812au
local modver=5.2.20
local dest=/usr/src/${modname}-${modver}
vmkdir ${dest}
cp -r dkms.conf Kconfig Makefile platform core hal include os_dep ${DESTDIR}/${dest}
# modules-load.d(5) file.
vmkdir usr/lib/modules-load.d
echo "8812au" > ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
}