Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:regataos
protonup-qt
protonup-qt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File protonup-qt.spec of Package protonup-qt
Name: protonup-qt Version: 2.10.2 Release: 0 Url: https://github.com/DavidoTek/ProtonUp-Qt/ Summary: Install and manage Proton-GE for Steam Group: System/GUI/KDE BuildRequires: desktop-file-utils BuildRequires: update-desktop-files BuildRequires: hicolor-icon-theme BuildRequires: -post-build-checks AutoReqProv: no License: GPL-3.0 Source1: %{name}.png Source2: ProtonUp-Qt-%{version}-x86_64.AppImage Source3: %{name}.desktop.txt BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Install and manage Proton-GE and Luxtorpeda for Steam and Wine-GE for Lutris with this graphical user interface. Based on AUNaseef's ProtonUp, made with Python 3 and Qt 6. %build %install mkdir -p %{buildroot}/usr/share/pixmaps/ install -D -m 644 %{SOURCE1} %{buildroot}/usr/share/pixmaps/%{name}.png mkdir -p %{buildroot}/opt/%{name}/ install -D -m 755 %{SOURCE2} %{buildroot}/opt/%{name}/ProtonUp-Qt-%{version}-x86_64.AppImage cp -f %{SOURCE3} %{buildroot}/opt/%{name}/%{name}.desktop %post # Create executable file rm -f /usr/bin/%{name} cat > /usr/bin/%{name} << EOM #!/bin/bash env DESKTOPINTEGRATION=1 /opt/%{name}/ProtonUp-Qt-%{version}-x86_64.AppImage EOM chmod a+x /usr/bin/%{name} # Create .desktop file rm -f %{_datadir}/applications/%{name}.desktop cat > %{_datadir}/applications/%{name}.desktop << EOM [Desktop Entry] Type=Application Name=ProtonUp-Qt GenericName=Install and manage Proton-GE for Steam. Comment=Install and manage Proton-GE for Steam. Icon=/usr/share/pixmaps/%{name}.png TryExec=%{name} Exec=%{name} Terminal=false Categories=Game;Utility; Keywords=Steam;Proton-GE; StartupWMClass=%{name} EOM %desktop_database_post %icon_theme_cache_post %mime_database_post update-desktop-database gtk-update-icon-cache %preun if [ "$1" = 0 ]; then # Remove .desktop file rm -f %{_datadir}/applications/%{name}.desktop rm -f /usr/bin/%{name} %desktop_database_post %icon_theme_cache_post %mime_database_post update-desktop-database gtk-update-icon-cache fi %clean %files %defattr(755,root,root,755) /opt/%{name}/ProtonUp-Qt-%{version}-x86_64.AppImage %defattr(-,root,root) /usr/share/pixmaps/%{name}.png /opt/%{name}/%{name}.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor