30 lines
930 B
Bash
30 lines
930 B
Bash
# Template file for 'rtl8812au-dkms'
|
|
pkgname=rtl8812au-dkms
|
|
version=20190731
|
|
revision=1
|
|
_gitrev=6faa3eaf8916667cb7f4ab59923b3608e6ab7b18
|
|
archs=noarch
|
|
wrksrc="rtl8812au-${_gitrev}"
|
|
depends="dkms"
|
|
short_desc="Realtek 8812AU/8821AU USB WiFi driver (DKMS)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.dlink.com"
|
|
distfiles="https://github.com/gordboy/rtl8812au/archive/${_gitrev}.tar.gz"
|
|
checksum=dfe05443cd0c52f86a4457efcefcbf9789d4131eb2957907e85d49ee250d211d
|
|
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
|
|
}
|