28 lines
968 B
Bash
28 lines
968 B
Bash
# Template file for 'rtl8822bu-dkms'
|
|
pkgname=rtl8822bu-dkms
|
|
version=20200407
|
|
revision=1
|
|
_gitrev=9438d453ec5b4878b7d4a2b4bcf87b37df09c3fb
|
|
archs=noarch
|
|
wrksrc="rtl8822bu-${_gitrev}"
|
|
depends="dkms"
|
|
short_desc="Realtek 8822BU USB WiFi driver (DKMS)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.tp-link.com"
|
|
distfiles="https://github.com/EntropicEffect/rtl8822bu/archive/${_gitrev}.tar.gz"
|
|
checksum=deaec219cc5921215523de6501966bcc3dd314e6e9a646161ee2deb5ce895662
|
|
dkms_modules="88x2bu ${version}"
|
|
|
|
do_install() {
|
|
vmkdir /usr/src/88x2bu-${version}
|
|
vcopy "*" usr/src/88x2bu-${version}
|
|
vinstall ${FILESDIR}/dkms.conf 644 usr/src/88x2bu-${version}
|
|
sed -i -e "s/@VERSION@/${version}-${revision}/" ${PKGDESTDIR}/usr/src/88x2bu-${version}/dkms.conf
|
|
|
|
# modules-load.d(5) file.
|
|
vmkdir usr/lib/modules-load.d
|
|
echo "88x2bu" > ${DESTDIR}/usr/lib/modules-load.d/88x2bu.conf
|
|
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/88x2bu.conf
|
|
}
|