sravan-overlay/games-util/new-lg4ff/new-lg4ff-0.4.0.ebuild
2024-06-05 17:24:58 -04:00

32 lines
664 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod-r1
DESCRIPTION="Experimental Logitech force feedback module"
HOMEPAGE="https://github.com/berarma/new-lg4ff"
SRC_URI="https://github.com/berarma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
# https://github.com/berarma/new-lg4ff/issues/57#issuecomment-1019325204
CONFIG_CHECK="LOGIWHEELS_FF"
src_prepare() {
default
sed -i \
-e "s%KDIR := .*%KDIR := ${KERNEL_DIR}%g" \
Makefile
}
src_compile() {
local modlist=( hid-logitech-new=kernel/drivers/hid )
linux-mod-r1_src_compile
}