Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 7b4911c99a0a9ca2ac6bab1c53d3cb8c > files > 2

duckmarines-1.0b-5.mga5.src.rpm

Name:           duckmarines
Version:        1.0b
Release:        %mkrel 5
Summary:        Frantic couch multiplayer action
Group:          Games/Arcade
License:        zlib and CC-BY-SA 4.0 and CC-BY 3.0 and CC-BY 4.0
URL:            http://tangramgames.dk/games/duckmarines/
#Source0:        https://github.com/SimonLarsen/duckmarines/archive/v%%{version}.tar.gz
# Version 1.0b with a later upstream commit adding icons + free music
# See http://forum.freegamedev.net/viewtopic.php?f=6&t=5662#p59054
Source0:        %{name}-%{version}-free-music.tar.xz

BuildArch:      noarch
BuildRequires:  zip
Requires:       love

%description
Duck Marines is a cross-platform free software PC remake of Sonic Team's
ChuChu Rocket.

Duck Marines attempts to recreate the magic from the local multiplayer
of ChuChu Rocket while adding new elements like mini games, a level editor,
colorful pixel art and more.

Mageia's version uses free music as selected by the FreeGameDev community.

%files
%doc README.md LICENSE.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}

%build

%install
# Create and install the .love (zip) archive
zip -9 -r %{name}.love .
install -D -m644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# Launcher script
cat > %{name}.sh << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
install -D -m755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=Duck Marines
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF
install -D -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# Icon
pushd res/icons
  install -D -m644 32x32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
  install -D -m644 48x48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
  install -D -m644 vector.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
popd


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 1.0b-5.mga5
+ Revision: 749753
- Second Mageia 5 Mass Rebuild

* Sat Oct 04 2014 akien <akien> 1.0b-4.mga5
+ Revision: 736840
- Add GenericName in the desktop entry (used for the KDE tooltip)

* Tue Sep 16 2014 umeabot <umeabot> 1.0b-3.mga5
+ Revision: 678876
- Mageia 5 Mass Rebuild

* Wed Sep 03 2014 akien <akien> 1.0b-2.mga5
+ Revision: 671699
- Custom version with CC-BY chiptune music

* Sun Aug 03 2014 akien <akien> 1.0b-1.mga5
+ Revision: 659502
- imported package duckmarines