mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-07 06:02:58 -04:00
games-util/hid-nintendo: add 3.2_p20220722
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
1
games-util/hid-nintendo/Manifest
Normal file
1
games-util/hid-nintendo/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hid-nintendo-3.2_p20220722.gh.tar.gz 46184 BLAKE2B 882feba93722de97e3aad1843e2af5b5730682e023ad9f8faec7cac57f8e0887537aed3c5fd43eca4a097cebd997efb304e3757320f546c27ff9cb6632408a47 SHA512 4fda54cefcddd9e8bb223fe39d13314999d9039626c9bc9f93b36f0e465453e4d9a7548b839e1647fdc764554ce12b77bc9b7ffbe57c891d1944f155565a00d0
|
||||
40
games-util/hid-nintendo/hid-nintendo-3.2_p20220722.ebuild
Normal file
40
games-util/hid-nintendo/hid-nintendo-3.2_p20220722.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit linux-mod-r1
|
||||
|
||||
DESCRIPTION="A Nintendo HID kernel module"
|
||||
HOMEPAGE="https://github.com/nicman23/dkms-hid-nintendo https://github.com/DanielOgorchock/linux"
|
||||
EGIT_REPO_URI="https://github.com/nicman23/dkms-hid-nintendo"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/nicman23/dkms-hid-nintendo"
|
||||
else
|
||||
MY_COMMIT="2712136b19eed75bff01c1a6ffe2a23daf78a7bb"
|
||||
SRC_URI="https://github.com/nicman23/dkms-hid-nintendo/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/dkms-hid-nintendo-${MY_COMMIT}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~HID ~HID_GENERIC ~USB_HID ~HIDRAW ~UHID"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if kernel_is -ge 6 12; then
|
||||
# header was moved in 6.12
|
||||
sed -i 's|<asm/unaligned.h>|<linux/unaligned.h>|' src/hid-nintendo.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local modlist=( src/hid-nintendo="${S}/src" )
|
||||
local modargs=( -C "${KV_DIR}" M="${S}/src" )
|
||||
|
||||
linux-mod-r1_src_compile
|
||||
}
|
||||
Reference in New Issue
Block a user