File steamtinkerlaunch.spec of Package steamtinkerlaunch
#
# spec file for package steamtinkerlaunch
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: steamtinkerlaunch
Version: 12.12~git20241025
Release: 0
Summary: Wrapper script for Steam custom launch options
License: GPL-3.0-or-later
URL: https://github.com/sonic2kk/steamtinkerlaunch
Source: %{name}-%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: fdupes
Requires: bash
Requires: gawk
Requires: procps
Requires: unzip
Requires: wget
Requires: xdotool
Requires: xprop
Requires: xrandr
Requires: xwininfo
Requires: yad >= 7.2
# Yet Unpackaged optional deps: vr-video-player, nyrna, boxtron, pev/readpe
Recommends: gamemode
Recommends: libgamemodeauto0-32bit
Recommends: gamescope
Recommends: ImageMagick
Recommends: jq
Recommends: libnotify
Recommends: mangohud
Recommends: p7zip
Recommends: replay-sorcery
Recommends: rsync
Recommends: scummvm
Recommends: strace
Recommends: usbutils
Recommends: vkbasalt
Recommends: winetricks
BuildArch: noarch
%description
Steam Tinker Launch is a versatile Linux wrapper tool for use with the Steam client which allows for easy graphical configuration
of game tools, such as GameScope, MangoHud, modding tools and a bunch more. It supports both games using Proton and native Linux
games, and works on both X11 and Wayland.
%prep
%autosetup -p1
# Fix shebang
sed -i '1 s:/bin/env :/bin/:' %{name}
chmod -x misc/%{name}.svg
%build
%install
install -Dm755 %{name} -t "%{buildroot}%{_bindir}"
install -d "%{buildroot}%{_datadir}/%{name}"
cp -r collections eval guicfgs lang misc "%{buildroot}%{_datadir}/%{name}"
install -Dm644 "misc/%{name}.desktop" -t "%{buildroot}%{_datadir}/applications"
install -Dm644 "misc/%{name}.svg" -t "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps"
%fdupes %{buildroot}
%check
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog