games-util/xone: drop 0.3, 0.3-r1

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-09-27 20:07:21 +03:00
parent 40c34de3db
commit 86cae4a123
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
3 changed files with 0 additions and 146 deletions

View File

@ -1,3 +1,2 @@
DIST xone-0.3.tar.gz 50561 BLAKE2B d5ca9849923e1b0532417a8983c429c2d8314c1122a4d89d6ab613b2d14b6cf9ce6d22879b83f41df1c34d4f87f3a4c74e610b54060d52a8e57db4c9b65b0edc SHA512 14177661de9b7530298773c230d178d444f51fe15c8a5329855cabdf88e11f205ef8dd4d7e49a201950c4db27d84ae32919fc8c35820aefe16e5c6f3d84533d3
DIST xone-0.3_p20230517.tar.gz 50602 BLAKE2B b1427d7eb31934765b250e82f1e3859bab1ef3ea4ad2d79d94b9531130bb49a95a31ee95a5353b369df1d0ff363d3128c0740db64cc4dd3650e675fb116bdc3f SHA512 78cd605a5d56c8230e8800dd43f9f423da52d896625242669480211a4105bbce3364669b742f678b6b48ecd3bc42ad2982d46fe0c6e99ec8e05b69a47c5c88ab
DIST xone-driver-201707-1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab 199891 BLAKE2B f531a9f4b8220ee4501431b308ee6e29a8dea26467020df25b7fa22228543cc560e1170d13b1cb3490c64c48bf610e3fb7ddfb743e4a2028f5980e02d0c36790 SHA512 0906debd6c1f4706348ec1b1cbf233ea2c45bbc0b8882593740964036808722f5bb701f43da803320609e02072cd16dada572d337fd4c05cc1cf6dde6fd38908

View File

@ -1,83 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
DESCRIPTION="Linux kernel driver for Xbox One and Xbox Series X|S accessories"
HOMEPAGE="https://github.com/medusalix/xone"
XONE_DRIVER_VERSION="201707-1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e"
SRC_URI="
https://github.com/medusalix/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
http://download.windowsupdate.com/c/msdownload/update/driver/drvs/${XONE_DRIVER_VERSION:0:4}/${XONE_DRIVER_VERSION:4:2}/${XONE_DRIVER_VERSION:7}.cab
-> ${PN}-driver-${XONE_DRIVER_VERSION}.cab
"
LICENSE="GPL-2 MS-TOU"
RESTRICT="bindist mirror"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="app-arch/cabextract"
pkg_setup() {
local CONFIG_CHECK="SND CFG80211 INPUT_FF_MEMLESS USB POWER_SUPPLY LEDS_CLASS HID"
MODULE_NAMES="
xone-wired(kernel/drivers/input/joystick)
xone-dongle(kernel/drivers/input/joystick)
xone-gip(kernel/drivers/input/joystick)
xone-gip-gamepad(kernel/drivers/input/joystick)
xone-gip-headset(kernel/drivers/input/joystick)
xone-gip-chatpad(kernel/drivers/input/joystick)
xone-gip-guitar(kernel/drivers/input/joystick)
"
linux-mod_pkg_setup
BUILD_TARGETS="module"
BUILD_PARAMS="KERNEL_DIR=${KERNEL_DIR} V=1"
# TODO: more robust solution in linux-mod would be ideal
if linux_chkconfig_present CC_IS_CLANG; then
"${KERNEL_CC:=${CHOST}-clang}"
if linux_chkconfig_present LD_IS_LLD; then
: "${KERNEL_LD:=ld.lld}"
if linux_chkconfig_present LTO_CLANG_THIN; then
BUILD_PARAMS+=" ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir="
fi
fi
fi
BUILD_PARAMS+=" ${KERNEL_CC:+CC=${KERNEL_CC}} ${KERNEL_LD:+LD=${KERNEL_LD}}"
}
src_unpack() {
unpack ${P}.tar.gz
cabextract -F FW_ACC_00U.bin -d "${S}" "${DISTDIR}/${PN}-driver-${XONE_DRIVER_VERSION}.cab" > /dev/null \
|| die "Failed to unpack driver"
}
src_prepare() {
cp "${FILESDIR}/Makefile" "${S}" || die
eapply_user
}
src_install() {
linux-mod_src_install
einfo "Installing module blacklist"
insinto /etc/modprobe.d/
newins "${S}"/install/modprobe.conf xone-blacklist.conf
einfo "Installing Microsoft binary firmware"
insinto /lib/firmware/
newins "${S}"/FW_ACC_00U.bin xow_dongle.bin
}

View File

@ -1,62 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod
DESCRIPTION="Linux kernel driver for Xbox One and Xbox Series X|S accessories"
HOMEPAGE="https://github.com/medusalix/xone"
XONE_DRIVER_VERSION="201707-1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e"
SRC_URI="https://github.com/medusalix/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
http://download.windowsupdate.com/c/msdownload/update/driver/drvs/${XONE_DRIVER_VERSION:0:4}/${XONE_DRIVER_VERSION:4:2}/${XONE_DRIVER_VERSION:7}.cab -> ${PN}-driver-${XONE_DRIVER_VERSION}.cab"
LICENSE="GPL-2 MS-TOU"
RESTRICT="bindist mirror"
SLOT="0"
KEYWORDS="~amd64"
MODULE_NAMES="
xone-wired(kernel/drivers/input/joystick)
xone-dongle(kernel/drivers/input/joystick)
xone-gip(kernel/drivers/input/joystick)
xone-gip-gamepad(kernel/drivers/input/joystick)
xone-gip-headset(kernel/drivers/input/joystick)
xone-gip-chatpad(kernel/drivers/input/joystick)
xone-gip-guitar(kernel/drivers/input/joystick)
"
BUILD_TARGETS="module"
BUILD_PARAMS="KERNEL_DIR=${KERNEL_DIR} V=1"
BDEPEND="app-arch/cabextract"
CONFIG_CHECK="SND CFG80211 INPUT_FF_MEMLESS USB POWER_SUPPLY LEDS_CLASS HID"
src_unpack() {
unpack ${P}.tar.gz
cabextract -F FW_ACC_00U.bin -d "${S}" "${DISTDIR}/${PN}-driver-${XONE_DRIVER_VERSION}.cab" > /dev/null \
|| die "Failed to unpack driver"
}
src_prepare() {
cp "${FILESDIR}/Makefile" "${S}" || die
eapply_user
}
src_install() {
linux-mod_src_install
einfo "Installing module blacklist"
insinto /etc/modprobe.d/
newins "${S}"/install/modprobe.conf xone-blacklist.conf
einfo "Installing Microsoft binary firmware"
insinto /lib/firmware/
newins "${S}"/FW_ACC_00U.bin xow_dongle.bin
}