-
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathrtl8821cu-dkms-git.pacscript
More file actions
39 lines (36 loc) · 931 Bytes
/
rtl8821cu-dkms-git.pacscript
File metadata and controls
39 lines (36 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pkgname="rtl8821cu-dkms-git"
gives="8821cu-20210916"
repology=("project: ${pkgname}")
pkgdesc="Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets"
pkgver="5.12.0.4"
arch=("amd64" "arm64")
url='https://github.com/morrownr/8821cu-20210916'
depends=(
"dkms"
"curl"
"kmod"
"bc"
"iproute2"
)
makedepends=(
"bash"
"nano"
"bc"
"build-essential"
"linux-headers-${CARCH}"
)
pacdeps=("firmware-realtek-deb")
optdepends=("usb-modeswitch: A tool that can switch the adapter from CD-ROM mode to Wi-Fi mode")
source=("https://github.com/morrownr/${gives}.git")
maintainer=("aKqir24 <aKqir24@github.com>")
package() {
cd "${gives}"
bash install-driver.sh
}
post_remove() {
modprobe -r rtl8821cu
bash -c "$(curl -fsSL https://raw.githubusercontent.com/morrownr/8821cu-20210916/refs/heads/main/remove-driver.sh)"
}
post_install() {
modprobe rtl8821cu
}