From d776552628f64ae86a08843d3ead78885510580d Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Sep 27 2024 20:21:18 +0000 Subject: Add desktop launcher, icon and metadata --- diff --git a/io.pagure.fedora_asahi.steam.metainfo.xml b/io.pagure.fedora_asahi.steam.metainfo.xml new file mode 100644 index 0000000..3eacf45 --- /dev/null +++ b/io.pagure.fedora_asahi.steam.metainfo.xml @@ -0,0 +1,32 @@ + + + + + + io.pagure.fedora_asahi.steam.desktop + CC0-1.0 + Steam + Launcher for the Steam software distribution service + +

Steam is a software distribution service with an online store, automated + installation, automatic updates, achievements, SteamCloud synchronized + savegame and screenshot functionality, and many social features.

+
+ + Game + PackageManager + + https://pagure.io/fedora-asahi/steam + https://pagure.io/fedora-asahi/steam/issues + MIT + Fedora Asahi contributors + + + https://steamcdn-a.akamaihd.net/steamcommunity/public/images/clans/27766192/ac26dea63042eec4886d5fa27854517ce374b11e.jpg + + + steam.desktop + + + +
diff --git a/steam.desktop b/steam.desktop new file mode 100644 index 0000000..a64699a --- /dev/null +++ b/steam.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Steam +Comment=Play games +Icon=steam +TryExec=steam +Exec=steam %U +Terminal=false +Categories=Game; +StartupWMClass=steam diff --git a/steam.spec b/steam.spec index b4aafbb..557402e 100644 --- a/steam.spec +++ b/steam.spec @@ -1,6 +1,6 @@ Name: steam Version: 0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Steam wrapper for Fedora Asahi Remix License: MIT @@ -8,14 +8,20 @@ URL: https://pagure.io/fedora-asahi/steam Source0: shim.py Source1: LICENSE Source2: README.md +Source3: steam.desktop +Source4: steam.svg +Source5: io.pagure.fedora_asahi.steam.metainfo.xml BuildArch: noarch BuildRequires: coreutils +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib Requires: bash Requires: fex-emu Requires: grep +Requires: hicolor-icon-theme Requires: krun Requires: python3 Requires: xwininfo @@ -39,12 +45,25 @@ cp -p %SOURCE1 %SOURCE2 . %install install -Dpm0755 %SOURCE0 %{buildroot}%{_bindir}/steam +desktop-file-install --dir=%{buildroot}%{_datadir}/applications %SOURCE3 +install -Dpm0644 -t %{buildroot}%{_datadir}/icons/hicolor/scalable/ %SOURCE4 +install -Dpm0644 -t %{buildroot}%{_metainfodir}/ %SOURCE5 + +%check +appstream-util validate-relax --nonet \ + %{buildroot}%{_metainfodir}/io.pagure.fedora_asahi.steam.metainfo.xml %files %license LICENSE %doc README.md %{_bindir}/steam +%{_datadir}/applications/steam.desktop +%{_datadir}/icons/hicolor/scalable/steam.svg +%{_metainfodir}/io.pagure.fedora_asahi.steam.metainfo.xml %changelog +* Thu Sep 26 2024 Davide Cavalca - 0-2 +- Add desktop launcher, icon and metadata + * Wed Sep 25 2024 Davide Cavalca - 0-1 - Initial version diff --git a/steam.svg b/steam.svg new file mode 100644 index 0000000..88711ad --- /dev/null +++ b/steam.svg @@ -0,0 +1,44 @@ + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + +