You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
947 B

# Copyright 2022 Calculate Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-mod
COMMIT="549257e6f62e8d7931e15f963aa06bb3c622ec7e"
DESCRIPTION="rtl88x2bu driver updated for current kernels"
HOMEPAGE="https://github.com/cilynx/rtl88x2bu"
SRC_URI="https://github.com/cilynx/rtl88x2bu/archive/${COMMIT}.tar.gz -> rtl88x2bu-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="virtual/linux-sources"
DEPEND="${RDEPEND}"
S="${WORKDIR}/rtl88x2bu-${COMMIT}"
MODULE_NAMES="88x2bu(net/wireless)"
BUILD_TARGETS="clean modules"
BUILD_TARGET_ARCH="${ARCH}"
pkg_setup() {
if ! use kernel_linux ; then
die "Unable to install"
fi
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KSRC=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
}
src_compile(){
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
}