Replace new-lg4ff with ebuild from stefantalpalaru
This commit is contained in:
parent
8bfbd095d3
commit
6f5ed23ebe
@ -1 +0,0 @@
|
||||
blacklist hid-logitech
|
@ -1,52 +1,31 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit linux-mod linux-info
|
||||
inherit linux-mod-r1
|
||||
|
||||
DESCRIPTION="Experimental Logitech force feedback module"
|
||||
HOMEPAGE="https://github.com/berarma/new-lg4ff"
|
||||
SRC_URI="https://github.com/berarma/new-lg4ff/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SRC_URI="https://github.com/berarma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
pkg_pretend() {
|
||||
if linux_config_exists; then
|
||||
if linux_chkconfig_module HID_LOGITECH ; then
|
||||
:
|
||||
else
|
||||
eerror "Kernel config CONFIG_HID_LOGITECH must be set to 'm'"
|
||||
eerror "Device Drivers -> HID support -> Special HID drivers -> Logitech devices"
|
||||
die
|
||||
fi
|
||||
if linux_chkconfig_present LOGIWHEELS_FF ; then
|
||||
:
|
||||
else
|
||||
eerror "Kernel config CONFIG_LOGIWHEELS_FF must be set to 'y'"
|
||||
eerror "Device Drivers -> HID support -> Special HID drivers -> Logitech devices"
|
||||
die
|
||||
fi
|
||||
else
|
||||
eerror "No .config !"
|
||||
die
|
||||
fi
|
||||
}
|
||||
# https://github.com/berarma/new-lg4ff/issues/57#issuecomment-1019325204
|
||||
CONFIG_CHECK="LOGIWHEELS_FF"
|
||||
|
||||
pkg_setup() {
|
||||
MODULE_NAMES="hid-logitech-new(kernel/drivers/hid:${S})"
|
||||
linux-mod_pkg_setup
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e "s%KDIR := .*%KDIR := ${KERNEL_DIR}%g" \
|
||||
Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ARCH=$(uname -m | sed -e 's/i.86/i386/')
|
||||
make
|
||||
}
|
||||
local modlist=( hid-logitech-new=kernel/drivers/hid )
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
insinto /etc/modprobe.d
|
||||
doins "${FILESDIR}"/new-lg4ff.conf
|
||||
linux-mod-r1_src_compile
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user