From cba9067a9ab27c8c5e976aff5642fc2fe6dbeb4f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:54:11 -0700 Subject: [PATCH] add: steamtinkerlaunch and steamtinkerlaunch-git (#4174) (#4175) * add: steamtinkerlaunch and steamtinkerlaunch-nightly * Add conflicts * cleanup: Remove unneeded backslash * fixup: Sed command that is less likely to have issues in future updates, rename to Git because this updates to infrequently, fix some dep stuff (cherry picked from commit 767d1ab5182000a1f541c33a3a080fab2d65ffbf) Co-authored-by: Gilver --- anda/games/steamtinkerlaunch/git/anda.hcl | 9 ++ .../git/steamtinkerlaunch-git.spec | 82 +++++++++++++++++++ anda/games/steamtinkerlaunch/git/update.rhai | 8 ++ anda/games/steamtinkerlaunch/stable/anda.hcl | 6 ++ .../stable/steamtinkerlaunch.spec | 75 +++++++++++++++++ .../steamtinkerlaunch/stable/update.rhai | 1 + 6 files changed, 181 insertions(+) create mode 100644 anda/games/steamtinkerlaunch/git/anda.hcl create mode 100644 anda/games/steamtinkerlaunch/git/steamtinkerlaunch-git.spec create mode 100644 anda/games/steamtinkerlaunch/git/update.rhai create mode 100644 anda/games/steamtinkerlaunch/stable/anda.hcl create mode 100644 anda/games/steamtinkerlaunch/stable/steamtinkerlaunch.spec create mode 100644 anda/games/steamtinkerlaunch/stable/update.rhai diff --git a/anda/games/steamtinkerlaunch/git/anda.hcl b/anda/games/steamtinkerlaunch/git/anda.hcl new file mode 100644 index 0000000000..263fbadf27 --- /dev/null +++ b/anda/games/steamtinkerlaunch/git/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "steamtinkerlaunch-git.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/games/steamtinkerlaunch/git/steamtinkerlaunch-git.spec b/anda/games/steamtinkerlaunch/git/steamtinkerlaunch-git.spec new file mode 100644 index 0000000000..3d04ee65ce --- /dev/null +++ b/anda/games/steamtinkerlaunch/git/steamtinkerlaunch-git.spec @@ -0,0 +1,82 @@ +%global commit 36e917c383a333caa43e187c06c0aed0c30c0421 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 20250221 +%global ver 12.12 +%global base_name steamtinkerlaunch +%global _description %{expand: +Steam Tinker Launch is a Linux wrapper tool for use with the Steam client which allows customizing and start tools and options for games quickly on the fly.} + +Name: %{base_name}-git +Version: %{ver}^%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: Wrapper tool for use with the Steam client for custom launch options +License: GPL-3.0-or-later +URL: https://github.com/sonic2kk/steamtinkerlaunch +Source0: %{url}/archive/%{commit}/%{base_name}-%{commit}.tar.gz +BuildRequires: make +BuildRequires: sed +Requires: bash +Requires: gawk +Requires: git +Requires: procps-ng +Requires: tar +Requires: unzip +Requires: vim-common +Requires: wget +Requires: xdotool +Requires: xprop +Requires: xrandr +Requires: xwininfo +Requires: xxd +Requires: yad >= 7.2 +# Weak deps for various optional features +Recommends: gamemode +Recommends: gameconqueror +# Default to terra-gamescope if available as Fedora's Gamescope package is notoriously broken, otherwise recommend Fedora's +Recommends: (terra-gamescope or gamescope) +Recommends: ImageMagick +Recommends: innoextract +Recommends: jq +Recommends: mangohud +Recommends: net-toolsa +Recommends: p7zip +Recommends: rsync +Recommends: scummvm +Recommends: strace +Recommends: usbutils +Recommends: vkBasalt +# Default to whatever WINE source the user has +Recommends: (winehq-staging or wine) +Recommends: winetricks +Recommends: xdg-utils +# Terra tag policy +Provides: %{base_name}.git +Conflicts: %{base_name} +BuildArch: noarch +Packager: Gilver E. + +%description %_description + +%prep +%autosetup -p1 -n %{base_name}-%{commit} +# We only want the install commands from the Makefile +sed -i 's/.*sed.*//g' Makefile +# Let RPM handle the doc files +sed -i 's/.*doc.*//g' Makefile + +%build + +%install +%make_install PREFIX=%{buildroot}%{_prefix} + +%files +%license LICENSE +%doc README.md +%{_bindir}/steamtinkerlaunch +%{_datadir}/steamtinkerlaunch +%{_datadir}/applications/steamtinkerlaunch.desktop +%{_datadir}/icons/hicolor/scalable/apps/steamtinkerlaunch.svg + +%changelog +* Wed Mar 26 2025 Gilver E. - 12.12 +- Initial package diff --git a/anda/games/steamtinkerlaunch/git/update.rhai b/anda/games/steamtinkerlaunch/git/update.rhai new file mode 100644 index 0000000000..d6f444d26f --- /dev/null +++ b/anda/games/steamtinkerlaunch/git/update.rhai @@ -0,0 +1,8 @@ +rpm.global("commit", gh_commit("sonic2kk/steamtinkerlaunch")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + let v = gh("sonic2kk/steamtinkerlaunch"); + v.crop(1); + rpm.global("ver", v); +} diff --git a/anda/games/steamtinkerlaunch/stable/anda.hcl b/anda/games/steamtinkerlaunch/stable/anda.hcl new file mode 100644 index 0000000000..58d0869f7a --- /dev/null +++ b/anda/games/steamtinkerlaunch/stable/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "steamtinkerlaunch.spec" + } +} diff --git a/anda/games/steamtinkerlaunch/stable/steamtinkerlaunch.spec b/anda/games/steamtinkerlaunch/stable/steamtinkerlaunch.spec new file mode 100644 index 0000000000..d888d26691 --- /dev/null +++ b/anda/games/steamtinkerlaunch/stable/steamtinkerlaunch.spec @@ -0,0 +1,75 @@ +%global _description %{expand: +Steam Tinker Launch is a Linux wrapper tool for use with the Steam client which allows customizing and start tools and options for games quickly on the fly.} + +Name: steamtinkerlaunch +Version: 12.12 +Release: 1%{?dist} +Summary: Wrapper tool for use with the Steam client for custom launch options +License: GPL-3.0-or-later +URL: https://github.com/sonic2kk/steamtinkerlaunch +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +BuildRequires: make +BuildRequires: sed +Requires: bash +Requires: gawk +Requires: git +Requires: procps-ng +Requires: tar +Requires: unzip +Requires: vim-common +Requires: wget +Requires: xdotool +Requires: xprop +Requires: xrandr +Requires: xwininfo +Requires: xxd +Requires: yad >= 7.2 +# Weak deps for various optional features +Recommends: gamemode +Recommends: gameconqueror +# Default to terra-gamescope if available as Fedora's Gamescope package is notoriously broken, otherwise recommend Fedora's +Recommends: (terra-gamescope or gamescope) +Recommends: ImageMagick +Recommends: innoextract +Recommends: jq +Recommends: mangohud +Recommends: net-toolsa +Recommends: p7zip +Recommends: rsync +Recommends: scummvm +Recommends: strace +Recommends: usbutils +Recommends: vkBasalt +# Default to whatever WINE source the user has +Recommends: (winehq-staging or wine) +Recommends: winetricks +Recommends: xdg-utils +Conflicts: %{name}-git +BuildArch: noarch +Packager: Gilver E. + +%description %_description + +%prep +%autosetup -p1 -n %{name}-%{version} +# We only want the install commands from the Makefile +sed -i 's/.*sed.*//g' Makefile +# Let RPM handle the doc files +sed -i 's/.*doc.*//g' Makefile + +%build + +%install +%make_install PREFIX=%{buildroot}%{_prefix} + +%files +%license LICENSE +%doc README.md +%{_bindir}/steamtinkerlaunch +%{_datadir}/steamtinkerlaunch +%{_datadir}/applications/steamtinkerlaunch.desktop +%{_datadir}/icons/hicolor/scalable/apps/steamtinkerlaunch.svg + +%changelog +* Wed Mar 26 2025 Gilver E. - 12.12 +- Initial package diff --git a/anda/games/steamtinkerlaunch/stable/update.rhai b/anda/games/steamtinkerlaunch/stable/update.rhai new file mode 100644 index 0000000000..c9a6a93391 --- /dev/null +++ b/anda/games/steamtinkerlaunch/stable/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("sonic2kk/steamtinkerlaunch"));