Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ rpcs3-app
rpi-imager-app
rsbbi-git
rstudio-deb
rtl8821cu-dkms-git
rust-bin
rust-bindgen-git
rust-motd-deb
Expand Down
14 changes: 14 additions & 0 deletions packages/rtl8821cu-dkms-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = rtl8821cu-dkms-git
gives = rtl8821cu-dkms
pkgver = 5.12.0.4
pkgdesc = Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets
url = https://github.com/morrownr/8821cu-20210916
arch = amd64
arch = arm64
depends = dkms
optdepends = firmware-realtek: realtek non-free-firmware
maintainer = aKqir24 <aKqir24@github.com>
repology = project: rtl8821cu-dkms-git
source = https://github.com/morrownr/8821cu-20210916.git

pkgname = rtl8821cu-dkms-git
60 changes: 60 additions & 0 deletions packages/rtl8821cu-dkms-git/rtl8821cu-dkms-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
pkgname="rtl8821cu-dkms-git"
gives="rtl8821cu-dkms"
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'
source=("https://github.com/morrownr/8821cu-20210916.git")
maintainer=("aKqir24 <aKqir24@github.com>")
depends=("dkms")
optdepends=("firmware-realtek: realtek non-free-firmware")
_dkmsname="rtl8821cu"

package() {
cd "${srcdir}/8821cu-20210916"
mkdir -p "${pkgdir}/usr/src/${_dkmsname}/${pkgver}"
cp -a ./* "${pkgdir}/usr/src/${_dkmsname}/${pkgver}"

# Install modprobe .conf file
mkdir -p "${pkgdir}/etc/modprobe.d"
cp -a "${pkgdir}/usr/src/${_dkmsname}/${pkgver}/8821cu.conf" "${pkgdir}/etc/modprobe.d/8821cu.conf"

# Fixing perms
find "${pkgdir}/usr/src/" -type d -exec chmod 755 {} +
find "${pkgdir}/usr/src/" -type f -exec chmod 644 {} +
find "${pkgdir}/usr/src/" -type f -name "*.sh" -exec chmod 755 {} +
}

pre_upgrade() {
if dkms status | grep -q "${_dkmsname}/${pkgver}"; then
dkms remove -m "${_dkmsname}" -v "${pkgver}" --all
fi
}

post_upgrade() {
dkms install -m "${_dkmsname}" -v "${pkgver}" --force
if [[ -f /usr/sbin/update-initramfs ]]; then
update-initramfs -u
fi
}

pre_remove() {
if dkms status | grep -q "${_dkmsname}/${pkgver}"; then
dkms remove -m "${_dkmsname}" -v "${pkgver}" --all
update-initramfs -u
fi
}

post_install() {
if [[ -d "/lib/modules/${KVER}/build" ]]; then
if ! dkms status | grep -q "${_dkmsname}/${pkgver}"; then
dkms install -m "${_dkmsname}" -v "${pkgver}" --force
if [[ -f /usr/sbin/update-initramfs ]]; then
update-initramfs -u
fi
fi
else
echo -e "${BOLD}ERROR:${NC} Linux headers for ${KVER} not installed."
fi
}
15 changes: 15 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -13868,6 +13868,21 @@ pkgbase = rstudio-deb

pkgname = rstudio-deb
---
pkgbase = rtl8821cu-dkms-git
gives = rtl8821cu-dkms
pkgver = 5.12.0.4
pkgdesc = Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets
url = https://github.com/morrownr/8821cu-20210916
arch = amd64
arch = arm64
depends = dkms
optdepends = firmware-realtek: realtek non-free-firmware
maintainer = aKqir24 <aKqir24@github.com>
repology = project: rtl8821cu-dkms-git
source = https://github.com/morrownr/8821cu-20210916.git

pkgname = rtl8821cu-dkms-git
---
pkgbase = rust-bin
gives = rust
pkgver = 1.93.1
Expand Down
Loading