Package starfighter: Specfile

Name: starfighter
Version: 1.7
Release: alt2

Summary: Starfighter is an old school 2D shoot'em up
Group: Games/Arcade
License: GPLv2, GPLv3, CC0, CC BY 3.0, CC BY-SA 3.0, Public Domain

Url: http://sourceforge.net/projects/pr-starfighter/
# http://download.savannah.gnu.org/releases/starfighter/1.7/starfighter-1.7-src.tar.gz
Source: %name-%version-src.tar.gz
Source1: %name.desktop

Patch0: starfighter-1.7-fix_misleading_indentation-alt.patch

# Automatically added by buildreq on Wed Mar 22 2006
BuildRequires: gcc-c++ libSDL2-devel libSDL2_image-devel libSDL2_mixer-devel

%description
Project: Starfighter is an old school 2D shoot 'em up. In the game you
take on the role of a rebel pilot called Chris, who is attempting to
overthrow a military corporation called Weapco. Weapco has seized
control of the known universe and currently rules it with an iron fist.
Chris can no longer stand back and watch as millions of people suffer
and die. He steals an experimental craft known as "Firefly" and begins
his mission to fight his way to Sol, freeing key systems along the way.
The game opens with Chris attempting to escape a Weapco patrol that has
intercepted him.

%prep
%setup
%patch0 -p2

%build
%configure
%make_build

%install

%makeinstall_std
install -D %SOURCE1 %buildroot%_desktopdir/%name.desktop
install -D gfx/rocketAmmo.png %buildroot%_niconsdir/%name.png

%files
%doc %_defaultdocdir/%name
%_bindir/*
%_datadir/%name
%_desktopdir/%name.desktop
%_niconsdir/%name.png
%_pixmapsdir/%name.png

%changelog
* Fri Jun 29 2018 Fr. Br. George <george@altlinux.ru> 1.7-alt2
- Revive building scheme

* Tue May 15 2018 Grigory Ustinov <grenka@altlinux.org> 1.7-alt1
- Build new version.

* Mon Jun 18 2012 Fr. Br. George <george@altlinux.ru> 1.2-alt1
- Autobuild version bump to 1.2
- Fix build

* Wed May 12 2010 Fr. Br. George <george@altlinux.ru> 1.1.1-alt3
- Resurrected from orphaned
- Replace menu file by desktop file

* Wed Mar 22 2006 Igor Zubkov <icesik@altlinux.ru> 1.1.1-alt2
- fix build with new ld / -Wl,--as-needed

* Fri Aug 05 2005 Igor Zubkov <icesik@altlinux.ru> 1.1.1-alt1
- Initial build for Sisyphus