net-wireless/rtl8821cu - 20260821 (calculate)

Search

Install

Install this version:

emerge -a =net-wireless/rtl8821cu-20260821

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-wireless/rtl8821cu-20260821

Or alternatively:

emerge --autounmask-write -a =net-wireless/rtl8821cu-20260821

Package Information

Description:
Realtek USB WiFi Adapters based on 8811CU/8821CU/8821CUH/8731AU Chipsets
Homepage:
https://github.com/morrownr/8821cu-20210916
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
20260821 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit linux-mod-r1

COMMIT="bda65aac150d2cde0df9603206eec23a6f3b77c4"

DESCRIPTION="Realtek USB WiFi Adapters based on 8811CU/8821CU/8821CUH/8731AU Chipsets"
HOMEPAGE="https://github.com/morrownr/8821cu-20210916"
SRC_URI="https://github.com/morrownr/8821cu-20210916/archive/${COMMIT}.tar.gz -> rtl8821cu-${PV}.tar.gz"

S="${WORKDIR}/8821cu-20210916-${COMMIT}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="virtual/linux-sources"

src_prepare() {
		default

		# Replace wrong EXTRA_CFLAGS (stopped working with kernels >= 6.15)
		# with proper CFLAGS_MODULE (available since 2.6.36).
		# Bug 957883
		sed -E -i'' \
		  -e 's/(^|[^A-Za-z0-9_])EXTRA_CFLAGS([^A-Za-z0-9_]|$)/\1CFLAGS_MODULE\2/g' \
		  Makefile || die
}

src_compile() {
	local modlist=( 8821cu=net/wireless )
	local modargs=( KSRC=${KV_OUT_DIR} )
	linux-mod-r1_src_compile
}

Inherited Eclasses

Dependencies

DEPEND

virtual/linux-sources

Manifest for 20260821

Type File Size Source URLs
DIST rtl8821cu-20260821.tar.gz 13823504 bytes https://github.com/morrownr/8821cu-20210916/archive/bda65aac150d2cde0df9603206eec23a6f3b77c4.tar.gz