rtl8821cu-20210916-r3.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2024 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit linux-mod-r1
  5. MODULES_KERNEL_MAX=6.11
  6. MODULES_KERNEL_MIN=6.1
  7. COMMIT="b009a8ea848d521abf64d2bc27630f4d081f30c9"
  8. DESCRIPTION="Realtek RTL8811CU/RTL8821CU USB wifi adapter driver"
  9. HOMEPAGE="https://github.com/morrownr/8821cu-20210916"
  10. SRC_URI="https://github.com/morrownr/8821cu-${PV}/archive/${COMMIT}.tar.gz -> rtl8821cu-${PV}-${COMMIT}.tar.gz"
  11. SLOT="0"
  12. LICENSE="GPL-2"
  13. KEYWORDS="~x86 ~amd64 ~arm ~arm64"
  14. DEPEND="virtual/linux-sources"
  15. RDEPEND="!<net-wireless/rtl8821cu-${PV}"
  16. S="${WORKDIR}/8821cu-${PV}-${COMMIT}"
  17. RESTRICT="mirror bindist"
  18. pkg_setup() {
  19. linux-mod-r1_pkg_setup
  20. CONFIG_CHECK="~!SSB ~!X86_INTEL_LPSS"
  21. CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP WIRELESS_EXT COMPAT_NET_DEV_OPS CFG80211"
  22. }
  23. src_compile() {
  24. local modlist=( 8821cu=kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821cu:. )
  25. local modargs=(
  26. KERNELDIR="${KV_OUT_DIR}"
  27. KVER=${KV_FULL}
  28. KSRC=${KERNEL_DIR}
  29. )
  30. linux-mod-r1_src_compile
  31. }