31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'rtl8812au-dkms'
|
|
pkgname=rtl8812au-dkms
|
|
version=20190515
|
|
revision=1
|
|
_gitrev=93ded0fa590dbaad902114a609736aedb592199a
|
|
archs=noarch
|
|
wrksrc="rtl8812AU_8821AU_linux-${_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/abperiasamy/rtl8812AU_8821AU_linux/archive/${_gitrev}.tar.gz"
|
|
checksum=091e7cf61b60bdc48f2018babf39b9852944ea0558dc176591718d759e940436
|
|
dkms_modules="rtl8812au 4.3.14"
|
|
|
|
do_install() {
|
|
local modname=rtl8812au
|
|
local modver=4.3.14
|
|
local dest=/usr/src/${modname}-${modver}
|
|
|
|
vmkdir ${dest}
|
|
cp -r dkms.conf Kconfig Makefile.dkms Makefile platform core hal include os_dep ${DESTDIR}/${dest}
|
|
cp Makefile ${DESTDIR}/${dest}/Makefile
|
|
sed "s/#MODULE_VERSION#/${modver}/" dkms.conf > ${DESTDIR}/${dest}/dkms.conf
|
|
|
|
# modules-load.d(5) file.
|
|
vmkdir usr/lib/modules-load.d
|
|
echo "rtl8812au" > ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
|
|
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
|
|
}
|