void-packages/srcpkgs/rtl8812au-dkms/template
Renato Aguiar 62d8aa131a
rtl8812au-dkms: Update to latest git revision
closes #10508

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
2019-04-02 14:08:29 -03:00

31 lines
1.1 KiB
Bash

# Template file for 'rtl8812au-dkms'
pkgname=rtl8812au-dkms
version=20190402
revision=1
_gitrev=9f09c7627bda0ab5a577c1ad0337666ca2951132
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=00bdb52eb7d8fc5f07cfae4648276ac7ef2ed9e68d2cb1002acc25d583b4c518
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
}