Wrapper fix.

This commit is contained in:
Gwyn Ciesla 2019-08-22 07:31:10 -05:00
parent 82732688d4
commit f87d265ee5
3 changed files with 6 additions and 4 deletions

View File

@ -1,2 +0,0 @@
#!/bin/bash
endless-sky -r /app/share/endless-sky

2
endless-sky-wrapper Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
endless-sky.bin -r /app/share/endless-sky

View File

@ -8,7 +8,7 @@ Summary: Space exploration, trading, and combat game
License: GPLv3
URL: https://%{name}.github.io
Source0: https://github.com/%{name}/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%{version}.tar.gz
Source1: endless-sky-flatpak.sh
Source1: endless-sky-wrapper
# Replace /usr/games with /usr/bin and /usr/share/games with /usr/share per
# https://fedoraproject.org/wiki/SIGs/Games/Packaging.
# Patch not submitted upstream. Upstream conforms to Debian packaging
@ -81,7 +81,9 @@ LDFLAGS="%{?__global_ldflags}" \
DESTDIR=%{buildroot} \
install
install -m644 -D endless-sky.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
install -m755 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin
install -m755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
sed -i 's|/app|%{_prefix}|g' %{buildroot}%{_bindir}/%{name}
%files
%doc README.md