New template: rtl8192cu-dkms

This commit is contained in:
Hunter Ellett 2024-03-27 10:43:43 -05:00
parent 78c3066198
commit 64319dcf92
Signed by: hunter0one
GPG Key ID: 573E926CBFE19604
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,5 @@
blacklist rtlwifi
blacklist rtl8192c_common
blacklist rtl8192cu
blacklist rtl8xxxu

View File

@ -0,0 +1,8 @@
PACKAGE_NAME="8192cu"
PACKAGE_VERSION="v4.0.2_9000"
BUILT_MODULE_NAME="8192cu"
PROCS_NUM=$(nproc)
[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16
MAKE="'make' -j$PROCS_NUM KVER=${kernelver}"
DEST_MODULE_LOCATION="/kernel/drivers/net/wireless"
AUTOINSTALL="yes"

View File

@ -0,0 +1,40 @@
# Template file for 'rtl8192cu-dkms'
pkgname=rtl8192cu-dkms
version=v4.0.2
_minver=9000
revision=1
archs="x86_64"
hostmakedepends="git xz tar"
depends="dkms"
short_desc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
maintainer="Hunter Ellett <hunter2k1@disroot.org>"
license="GPL-2.0-only"
homepage="https://github.com/Rick-Moba/rtl8192cu"
dkms_modules="8192cu ${version}_${_minver}"
do_fetch() {
# Because there are no tags, this goes unsigned.
git clone -q https://github.com/Rick-Moba/rtl8192cu.git
# It really doesnt like using variables for tar filenames..
tar -cJf realtek-dkms-temp.tar.xz rtl8192cu
rm -rf rtl8192cu
}
do_extract() {
tar -xf ${XBPS_BUILDDIR}/realtek-dkms-temp.tar.xz
}
do_install() {
local dest=/usr/src/8192cu-${version}_${_minver}
vmkdir ${dest}
vmkdir etc/modprobe.d
vcopy rtl8192cu/* ${dest}
vcopy ${FILESDIR}/blacklist-8192cu-dkms.conf etc/modprobe.d
vcopy ${FILESDIR}/dkms.conf ${dest}
# modules-load.d(5) file
vmkdir usr/lib/modules-load.d
echo "8192cu" > ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/${pkgname}.conf
}