New template: rtl8192cu-dkms
This commit is contained in:
parent
78c3066198
commit
64319dcf92
|
@ -0,0 +1,5 @@
|
|||
blacklist rtlwifi
|
||||
blacklist rtl8192c_common
|
||||
blacklist rtl8192cu
|
||||
blacklist rtl8xxxu
|
||||
|
|
@ -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"
|
|
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue