commit:     0831d3374bdfde3bdfc1708ffae35ba3682d7865
Author:     Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
AuthorDate: Fri Jun 30 08:53:50 2023 +0000
Commit:     Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
CommitDate: Fri Jun 30 08:55:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0831d337

net-wireless/rtl8821cu: Ebuild fix

Signed-off-by: Aleksandr Batyuk <abbat.2008 <AT> gmail.com>

 .../rtl8821cu/rtl8821cu-0_pre20230624.ebuild         | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild 
b/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
index 63548f00b..f43d0a02f 100644
--- a/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
+++ b/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
@@ -5,29 +5,21 @@ EAPI=8
 
 inherit linux-mod-r1
 
-SLOT=0
-
+MY_PN="8821cu-20210916"
 COMMIT="dc9ee6c6a8b47d0e365fcf1977439c7243da71d5"
-
 DESCRIPTION="Realtek 8821CU/RTL8811CU module for Linux kernel"
 HOMEPAGE="https://github.com/morrownr/8821cu-20210916";
-SRC_URI="https://github.com/morrownr/8821cu-20210916/archive/${COMMIT}.tar.gz 
-> rtl8821cu-${PV}.tar.gz"
+SRC_URI="https://github.com/morrownr/${MY_PN}/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${COMMIT}"
 
+SLOT=0
 LICENSE="GPL-2"
 KEYWORDS="~amd64 ~x86"
 
-DEPEND="virtual/linux-sources"
-
-S="${WORKDIR}/8821cu-20210916-${COMMIT}"
-
 src_compile() {
        linux-mod-r1_pkg_setup
 
-       local modlist=(8821cu=net/wireless)
-
+       local modlist=( 8821cu=net/wireless )
+       local modargs=( KSRC="${KV_OUT_DIR}" )
        linux-mod-r1_src_compile
 }
-
-src_install() {
-       linux-mod-r1_src_install
-}

Reply via email to