Files
guru/net-wireless/rtl8723bu/rtl8723bu-999.ebuild
Alexis Praga 2091d7b073 net-wireless/rtl8723bu: new package
Driver for Realtek RTL8723BU Wireless Adapter with Hardware ID 0bda:b720

Signed-off-by: Alexis Praga <alexis.praga@proton.me>
2023-01-22 21:46:11 +01:00

36 lines
735 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 linux-mod linux-info
DESCRIPTION="Driver for the rtl8723 wireless chipset"
HOMEPAGE="https://github.com/lwfinger/rtl8723bu"
EGIT_REPO_URI="https://github.com/lwfinger/rtl8723bu.git"
LICENSE="GPL-2"
RDEPEND="sys-kernel/linux-firmware"
MODULE_NAMES="8723bu(net:)"
BUILD_TARGETS="all"
# Concurrent mode should be disable to avoid 2 conflicting wifi interfaces
src_prepare() {
default
sed -i '/EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE/s/^/#/' Makefile || die "sed failed !"
}
pkg_setup() {
linux-mod_pkg_setup
}
src_install() {
insinto /lib/firmware
doins rtl8723b_fw.bin
linux-mod_src_install
}