mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
New package: rtl8821cu-dkms-20210118
This commit is contained in:
parent
dba4417e2e
commit
79d9e56687
2 changed files with 42 additions and 0 deletions
40
srcpkgs/rtl8821cu-dkms/template
Normal file
40
srcpkgs/rtl8821cu-dkms/template
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Template file for 'rtl8821cu-dkms'
|
||||||
|
pkgname=rtl8821cu-dkms
|
||||||
|
version=20210118
|
||||||
|
revision=1
|
||||||
|
_modver=5.12.0
|
||||||
|
_gitrev=76605e464119f0d56bf3a41866b58defd54464d8
|
||||||
|
wrksrc="8821cu-${version}-${_gitrev}"
|
||||||
|
depends="dkms"
|
||||||
|
short_desc="Realtek 8811CU/8821CU/8731AU USB WiFi driver (DKMS)"
|
||||||
|
maintainer="classabbyamp <void@placeviolette.net>"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
homepage="https://github.com/morrownr/8821cu"
|
||||||
|
distfiles="https://github.com/morrownr/8821cu-${version}/archive/${_gitrev}.tar.gz"
|
||||||
|
checksum=5f0990c67839f1e6318da7d14d0e11a474a827543723d59e8eacdbc4bf742cb5
|
||||||
|
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; do
|
||||||
|
vcopy ${itm} ${dest}
|
||||||
|
done
|
||||||
|
|
||||||
|
vinstall rtw88_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
|
||||||
|
}
|
2
srcpkgs/rtl8821cu-dkms/update
Normal file
2
srcpkgs/rtl8821cu-dkms/update
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
site="https://github.com/morrownr/8821cu"
|
||||||
|
pattern='8821cu-\K[\d.]+(?=">)'
|
Loading…
Add table
Reference in a new issue