From 1facc18419c667862aad12f80cbc598eaaca954d Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:14:45 -0700 Subject: [PATCH] add: opengamepadui (#2251) (#2253) * add: opengamepadui * dont limit arc h (cherry picked from commit b5371d7334df93b9e43f59c69f2c07f5a348f465) Co-authored-by: Cappy Ishihara --- anda/games/opengamepadui/anda.hcl | 6 ++ anda/games/opengamepadui/opengamepadui.spec | 81 +++++++++++++++++++++ anda/games/opengamepadui/update.rhai | 1 + 3 files changed, 88 insertions(+) create mode 100644 anda/games/opengamepadui/anda.hcl create mode 100644 anda/games/opengamepadui/opengamepadui.spec create mode 100644 anda/games/opengamepadui/update.rhai diff --git a/anda/games/opengamepadui/anda.hcl b/anda/games/opengamepadui/anda.hcl new file mode 100644 index 0000000000..8f844f71d6 --- /dev/null +++ b/anda/games/opengamepadui/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + // arches = ["x86_64"] + rpm { + spec = "opengamepadui.spec" + } +} diff --git a/anda/games/opengamepadui/opengamepadui.spec b/anda/games/opengamepadui/opengamepadui.spec new file mode 100644 index 0000000000..ca7afc33a5 --- /dev/null +++ b/anda/games/opengamepadui/opengamepadui.spec @@ -0,0 +1,81 @@ +Name: opengamepadui +Version: 0.34.1 +Release: 1%{?dist} +Summary: Open source gamepad-native game launcher and overlay + +License: GPLv3 +URL: https://github.com/ShadowBlip/OpenGamepadUI +Packager: Cappy Ishihara + +BuildRequires: godot +BuildRequires: scons +BuildRequires: make +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: gcc +BuildRequires: libXinerama-devel +BuildRequires: libXi-devel +BuildRequires: mesa-libGL-devel +BuildRequires: alsa-lib-devel +BuildRequires: pulseaudio-libs-devel +BuildRequires: libevdev-devel +BuildRequires: git +BuildRequires: wget +BuildRequires: unzip +BuildRequires: dbus-devel +BuildRequires: pkgconfig(xres) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xau) +BuildRequires: pkgconfig(xtst) +BuildRequires: pkgconfig(xdmcp) +BuildRequires: systemd-rpm-macros + +Requires: godot-runner +Recommends: inputplumber +Recommends: powerstation + +%global build_dir %{name}-%{version} + +%description +Open Gamepad UI is a free and open source game launcher and overlay written using the Godot Game Engine 4 designed with a gamepad native experience in mind. Its goal is to provide an open and extendable foundation to launch and play games. It also implements a gamepad input system that can allow you to +remap gamepad input to mouse and keyboard inputs. + +%prep + +# We clone the repo from Git here because the build script requires +# submodules to be present in the source directory. +rm -rf %{build_dir} +git clone %{url} %{build_dir} -b v%{version} +cd %{build_dir} +git checkout tags/v%{version} + +%build +cd %{build_dir} +make import +%make_build + + +%install +cd %{build_dir} +%make_install PREFIX=%{buildroot}%{_prefix} INSTALL_PREFIX=%{_prefix} + + +%files +%license %{build_dir}/LICENSE +%doc %{build_dir}/docs/ +%{_bindir}/opengamepadui +%{_datadir}/opengamepadui/*.so +%{_datadir}/opengamepadui/scripts/* +%{_datadir}/opengamepadui/opengamepad-ui.* +%{_datadir}/applications/opengamepadui.desktop +%{_datadir}/icons/hicolor/scalable/apps/opengamepadui.svg +%{_datadir}/polkit-1/actions/* +%{_userunitdir}/* + + +%changelog +* Sun Oct 20 2024 Cappy Ishihara +- Initial Package diff --git a/anda/games/opengamepadui/update.rhai b/anda/games/opengamepadui/update.rhai new file mode 100644 index 0000000000..71a7b34202 --- /dev/null +++ b/anda/games/opengamepadui/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ShadowBlip/OpenGamepadUI"));