net-wireless/rtl8821cu: Migrate to linux-mod-r1.eclass

Signed-off-by: Aleksandr Batyuk <abbat.2008@gmail.com>
This commit is contained in:
Aleksandr Batyuk
2023-06-25 21:00:33 +06:00
parent c6401c7b85
commit 24abee5360
2 changed files with 17 additions and 7 deletions

View File

@@ -1 +1 @@
DIST rtl8821cu-0_pre20230428.tar.gz 13821386 BLAKE2B f71e979f9d783486809343e777fa008058c61ead739a64ef11149d4a6da24d628c61d56c7c03f0c32c90d5474b2c179e106702b0cc695ca0261ce8f1f457de8f SHA512 2ff4503bc5a80a28611c293381d4b08deb9512042b1ffcb2e379dba65ae833250210abd25255d6066f28ecdd551d45bcf0dcc3db4a75e0605a3414ed29189efd
DIST rtl8821cu-0_pre20230624.tar.gz 13822129 BLAKE2B 2866228ac37d1922488e484223c1abe66ff4e2233f3e14047ebf2285a354682b3045d8a4035533e958a14fdbe86ddc2e322dc51ef1c7d7672c45f030189ececf SHA512 22e62236344fd229c0751397c75c253cc2175a4a259f4fc54ba4d5cdc54e6c57af18200cb6d0435f863a99a3cf2fc9a0d3a03c0aa1c198850c693ad3c564b7d6

View File

@@ -1,12 +1,13 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit linux-mod toolchain-funcs
BUILD_PARAMS="CC=$(tc-getCC) V=1 KSRC=${KERNEL_DIR}"
inherit linux-mod-r1
COMMIT="e49409f22ceea0d5b5ef431e6170580028b84c9d"
SLOT=0
COMMIT="dc9ee6c6a8b47d0e365fcf1977439c7243da71d5"
DESCRIPTION="Realtek 8821CU/RTL8811CU module for Linux kernel"
HOMEPAGE="https://github.com/morrownr/8821cu-20210916"
@@ -19,5 +20,14 @@ DEPEND="virtual/linux-sources"
S="${WORKDIR}/8821cu-20210916-${COMMIT}"
MODULE_NAMES="8821cu(net/wireless)"
BUILD_TARGETS="all"
src_compile() {
linux-mod-r1_pkg_setup
local modlist=(8821cu=net/wireless)
linux-mod-r1_src_compile
}
src_install() {
linux-mod-r1_src_install
}