-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Packaging): add Fedora-compatible RPM builds
- Loading branch information
1 parent
d79e5e3
commit 636300b
Showing
10 changed files
with
118 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Name: opengamepadui | ||
Version: 0.29.1 | ||
Release: 1%{?dist} | ||
Summary: A free and open source game launcher and overlay written using the Godot Game Engine 4 designed with a gamepad native experience in mind | ||
License: GPL-3.0-only | ||
URL: https://github.com/ShadowBlip/OpenGamepadUI | ||
|
||
Source: https://github.com/ShadowBlip/OpenGamepadUI/releases/download/v%{version}/opengamepadui.tar.gz | ||
|
||
Requires: gamescope | ||
|
||
BuildRequires: make | ||
BuildRequires: systemd-rpm-macros | ||
|
||
%description | ||
A free and open source game launcher and overlay written using the Godot Game Engine 4 designed with a gamepad native experience in mind | ||
|
||
%define debug_package %{nil} | ||
%define _build_id_links none | ||
|
||
%prep | ||
%autosetup -p1 -n opengamepadui | ||
|
||
%install | ||
make install PREFIX=%{buildroot}%{_prefix} INSTALL_PREFIX=%{_prefix} | ||
|
||
%files | ||
%{_bindir}/opengamepadui | ||
%{_datadir}/opengamepadui/*.so | ||
%{_datadir}/opengamepadui/scripts/make_nice | ||
%{_datadir}/opengamepadui/scripts/manage_input | ||
%{_datadir}/opengamepadui/scripts/powertools | ||
%{_datadir}/opengamepadui/opengamepad-ui.x86_64 | ||
%{_datadir}/applications/opengamepadui.desktop | ||
%{_datadir}/icons/hicolor/scalable/apps/opengamepadui.svg | ||
%{_datadir}/polkit-1/actions/org.shadowblip.manage_input.policy | ||
%{_datadir}/polkit-1/actions/org.shadowblip.powertools.policy | ||
%{_datadir}/polkit-1/actions/org.shadowblip.setcap.policy | ||
%{_prefix}/lib/udev/hwdb.d/59-opengamepadui-handheld.hwdb | ||
%{_udevrulesdir}/61-opengamepadui-handheld.rules | ||
%{_userunitdir}/systemd-sysext-updater.service | ||
%{_userunitdir}/ogui-overlay-mode.service | ||
|
||
%changelog | ||
%autochangelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
#!/bin/bash | ||
#!/usr/bin/bash | ||
|
||
set -eu | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
exec pkexec --disable-internal-agent "$0" "$@" | ||
exec pkexec --disable-internal-agent "$0" "$@" | ||
fi | ||
|
||
ensure_hidden_exists() { | ||
if [[ ! -d "/dev/input/.hidden" ]]; then | ||
mkdir /dev/input/.hidden | ||
fi | ||
if [[ ! -d "/dev/input/.hidden" ]]; then | ||
mkdir /dev/input/.hidden | ||
fi | ||
} | ||
|
||
hide() { | ||
mv /dev/input/${1} /dev/input/.hidden/${1} | ||
mv /dev/input/${1} /dev/input/.hidden/${1} | ||
} | ||
|
||
restore() { | ||
mv /dev/input/.hidden/${1} /dev/input/${1} | ||
mv /dev/input/.hidden/${1} /dev/input/${1} | ||
} | ||
|
||
turbo_takeover() { | ||
value=${1} | ||
echo ${value} > /sys/devices/platform/oxp-platform/tt_toggle | ||
value=${1} | ||
echo ${value} >/sys/devices/platform/oxp-platform/tt_toggle | ||
} | ||
|
||
ensure_hidden_exists | ||
|
||
if [[ $1 == "hide" ]]; then | ||
if [[ ! -e "/dev/input/${2}" ]]; then | ||
echo "UInput device ${2} does not exist." | ||
exit 1 | ||
fi | ||
hide $2 | ||
if [[ ! -e "/dev/input/${2}" ]]; then | ||
echo "UInput device ${2} does not exist." | ||
exit 1 | ||
fi | ||
hide $2 | ||
|
||
elif [[ $1 == "restore" ]]; then | ||
if [[ ! -e "/dev/input/.hidden/${2}" ]]; then | ||
echo "UInput device ${2} is not hidden." | ||
exit 1 | ||
fi | ||
restore $2 | ||
if [[ ! -e "/dev/input/.hidden/${2}" ]]; then | ||
echo "UInput device ${2} is not hidden." | ||
exit 1 | ||
fi | ||
restore $2 | ||
|
||
elif [[ $1 == "turbo_takeover" ]]; then | ||
if [[ ! -f /sys/devices/platform/oxp-platform/tt_toggle ]]; then | ||
echo "Turbo toggle does not exist." | ||
exit 1 | ||
fi | ||
turbo_takeover $2 | ||
fi | ||
if [[ ! -f /sys/devices/platform/oxp-platform/tt_toggle ]]; then | ||
echo "Turbo toggle does not exist." | ||
exit 1 | ||
fi | ||
turbo_takeover $2 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/bash | ||
|
||
set -eu | ||
|
||
|