mirror of
https://abf.rosa.ru/djam/astromenace.git
synced 2025-02-24 23:13:11 +00:00
Merge pull request #1 from survolog/astromenace:rosa2016.1
Updated to 1.4.0
This commit is contained in:
commit
451ec214ac
2 changed files with 30 additions and 32 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
astromenace-src-1.3.2.tar.bz2: a4b5c8c76970fbff0609a59d80402848957aa515
|
astromenace-1.4.0.tar.gz: e79aadc4403a62998154dcd33a4707a4ec3120ad
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
|
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
|
||||||
Name: astromenace
|
Name: astromenace
|
||||||
Version: 1.3.2
|
Version: 1.4.0
|
||||||
Release: 5
|
Release: 1
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Games/Arcade
|
Group: Games/Arcade
|
||||||
Url: http://www.viewizard.com/
|
Url: http://www.viewizard.com/
|
||||||
Source0: http://sourceforge.net/projects/openastromenace/files/%{version}/%{name}-src-%{version}.tar.bz2
|
Source0: https://github.com/viewizard/astromenace/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
||||||
Source1: astromenace.desktop
|
Source1: astromenace.desktop
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: pkgconfig(freealut)
|
BuildRequires: pkgconfig(freealut)
|
||||||
|
@ -16,7 +16,7 @@ BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: pkgconfig(glu)
|
BuildRequires: pkgconfig(glu)
|
||||||
BuildRequires: pkgconfig(ogg)
|
BuildRequires: pkgconfig(ogg)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(sdl)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
BuildRequires: pkgconfig(vorbis)
|
BuildRequires: pkgconfig(vorbis)
|
||||||
BuildRequires: pkgconfig(xinerama)
|
BuildRequires: pkgconfig(xinerama)
|
||||||
BuildRequires: jpeg-devel
|
BuildRequires: jpeg-devel
|
||||||
|
@ -34,6 +34,14 @@ a final showdown and put their best pilot to fight back. These malicious
|
||||||
invaders chose the wrong galaxy to conquer and you are to prove it!
|
invaders chose the wrong galaxy to conquer and you are to prove it!
|
||||||
Go ahead and make alien aggressors regret their insolence.
|
Go ahead and make alien aggressors regret their insolence.
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc CHANGELOG.md LICENSE.md README.md
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_datadir}/applications/astromenace.desktop
|
||||||
|
%{_iconsdir}/hicolor/*/apps/%{name}.png
|
||||||
|
|
||||||
|
#------------------------------------------------------------------
|
||||||
|
|
||||||
%package data
|
%package data
|
||||||
Summary: Game data for AstroMenace game
|
Summary: Game data for AstroMenace game
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
@ -44,47 +52,37 @@ Obsoletes: astromenace-data-de < 1.3.1
|
||||||
%description data
|
%description data
|
||||||
This package provides game data for AstroMenace.
|
This package provides game data for AstroMenace.
|
||||||
|
|
||||||
%prep
|
%files data
|
||||||
%setup -qn AstroMenace
|
%{_datadir}/%{name}
|
||||||
sed -i 's/\r//' License.txt
|
|
||||||
sed -i 's/\r//' gpl-3.0.txt
|
|
||||||
sed -i 's/\r//' ReadMe.txt
|
|
||||||
|
|
||||||
chmod -x License.txt
|
#------------------------------------------------------------------
|
||||||
chmod -x ReadMe.txt
|
|
||||||
chmod -x gpl-3.0.txt
|
%prep
|
||||||
|
%setup -q
|
||||||
|
find . -name "*.cpp" -exec sed -i 's/\r//g' {} \;
|
||||||
|
find . -name "*.h" -exec sed -i 's/\r//g' {} \;
|
||||||
|
find . -name "*.cpp" -exec chmod 0644 {} \;
|
||||||
|
find . -name "*.h" -exec chmod 0644 {} \;
|
||||||
|
chmod -x CHANGELOG.md LICENSE.md README.md
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DDATADIR=/usr/share/astromenace
|
-DDATADIR=/usr/share/astromenace
|
||||||
%make
|
%make
|
||||||
./AstroMenace --pack --rawdata=../RAW_VFS_DATA --dir=.
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
install -m 755 build/AstroMenace %{buildroot}%{_bindir}/%{name}
|
install -m 755 build/astromenace %{buildroot}%{_bindir}/%{name}
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||||
install -m 644 build/gamedata.vfs %{buildroot}%{_datadir}/%{name}/gamedata.vfs
|
install -m 644 build/gamedata.vfs %{buildroot}%{_datadir}/%{name}/gamedata.vfs
|
||||||
|
|
||||||
desktop-file-install \
|
desktop-file-install \
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
--dir %{buildroot}%{_datadir}/applications \
|
||||||
%{SOURCE1}
|
%{SOURCE1}
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
|
||||||
install -p -m 644 %{name}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
install -p -m 644 share/%{name}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
||||||
install -p -m 644 %{name}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
install -p -m 644 share/%{name}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||||
|
|
||||||
%files
|
|
||||||
%doc ReadMe.txt License.txt
|
|
||||||
%{_bindir}/%{name}
|
|
||||||
%{_datadir}/applications/astromenace.desktop
|
|
||||||
%{_iconsdir}/hicolor/*/apps/%{name}.png
|
|
||||||
|
|
||||||
%files data
|
|
||||||
%doc gpl-3.0.txt
|
|
||||||
%{_datadir}/%{name}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue