40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'rtl8821cu-dkms'
|
|
pkgname=rtl8821cu-dkms
|
|
version=20210916+1
|
|
revision=1
|
|
_modver=5.12.0.4
|
|
_gitrev=8e300c0885835b079ad1a99cccd960754a4c849f
|
|
depends="dkms"
|
|
short_desc="Realtek 8811CU/8821CU/8731AU USB WiFi driver (DKMS)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/morrownr/8821cu"
|
|
distfiles="https://github.com/morrownr/8821cu-${version%+*}/archive/${_gitrev}.tar.gz"
|
|
checksum=fddbd25e4594d7f5d52b7c27d77de4260224e0e9ee478e615fe28b366fdec4fb
|
|
dkms_modules="rtl8821cu ${_modver}"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) _karch="x86_64";;
|
|
i686*) _karch="i386";;
|
|
aarch64*) _karch="arm64";;
|
|
arm*) _karch="arm";;
|
|
ppc*) _karch="powerpc";;
|
|
mips*) _karch="mips";;
|
|
*) broken="kernel arch not defined";;
|
|
esac
|
|
|
|
do_install() {
|
|
local dest=/usr/src/rtl8821cu-${_modver}
|
|
|
|
vmkdir ${dest}
|
|
for itm in dkms.conf rtl8821c.mk halmac.mk Kconfig Makefile platform core hal include os_dep dkms-make.sh; do
|
|
vcopy ${itm} ${dest}
|
|
done
|
|
|
|
vinstall 8821cu.conf 644 usr/lib/modprobe.d
|
|
|
|
# modules-load.d(5) file.
|
|
vmkdir usr/lib/modules-load.d
|
|
echo "8821cu" > ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
|
|
}
|