File steamtinkerlaunch.spec of Package steamtinkerlaunch

#
# spec file for package steamtinkerlaunch
#
# Copyright (c) 2022 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
Release:        0
Summary:        Wrapper script for Steam custom launch options
License:        GPL-3.0-or-later
URL:            https://github.com/sonic2kk/steamtinkerlaunch
Source:         %{url}/archive/refs/tags/v%{version}.tar.gz
Patch0:         fix-shebang.patch
BuildRequires:  findutils
BuildRequires:  hicolor-icon-theme
BuildRequires:  make
BuildRequires:  update-desktop-files
Requires:       bash
Requires:       gawk
Requires:       procps
Requires:       unzip
Requires:       wget
Requires:       xdotool
Requires:       xwininfo
Requires:       yad >= 7.2
Recommends:     ImageMagick
# Yet Unpackaged optional deps: vr-video-player, nyrna, boxtron,
Recommends:     gamemoded
Recommends:     gamescope
Recommends:     innoextract
Recommends:     jq
Recommends:     libnotify
Recommends:     mangohud
Recommends:     p7zip
Recommends:     scummvm
Recommends:     usbutils
Recommends:     vkbasalt
Recommends:     wine
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
%setup -q
%patch0 -p1

%build
%make_build

%install
mkdir -p %{buildroot}%{prefix}
install -Dm755 %{name} -t "%{buildroot}/%{_bindir}"
install -d "%{buildroot}/%{_datadir}/%{name}"
install -Dm644 "misc/%{name}.desktop" -t "%{buildroot}/%{_datadir}/applications"
install -Dm644 "misc/%{name}.svg" -t "%{buildroot}/%{_datadir}/icons/hicolor/scalable/apps"
rm "misc/%{name}.desktop" "misc/%{name}.svg"
cp -r collections eval guicfgs lang misc "%{buildroot}/%{_datadir}/%{name}"

%files
%license LICENSE
%doc README.md
%dir %{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

%changelog
openSUSE Build Service is sponsored by