mirror of
https://abf.rosa.ru/djam/fheroes2.git
synced 2025-02-24 10:12:52 +00:00
0.8.4
This commit is contained in:
parent
3304e41c3d
commit
abcaf958f6
3 changed files with 27 additions and 28 deletions
3
.abf.yml
3
.abf.yml
|
@ -1,2 +1,3 @@
|
|||
sources:
|
||||
fheroes2-src-r3277.tar.bz2: e744d471597170b50b8105ee5292bec05c7475cf
|
||||
fheroes2-0.8.4.tar.gz: 035af02439f0521016aae07b13b19a833574d9ab
|
||||
fheroes2.png: 29369e838940593d9fe23321903f40d58f4f1d6c
|
||||
|
|
BIN
fheroes2.png
BIN
fheroes2.png
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB |
|
@ -1,24 +1,22 @@
|
|||
%define rev r3277
|
||||
|
||||
Summary: Free implementation of Heroes of the Might and Magic II engine
|
||||
Name: fheroes2
|
||||
Version: 20150413
|
||||
Release: 3
|
||||
Version: 0.8.4
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Group: Games/Strategy
|
||||
Url: http://sourceforge.net/projects/fheroes2/
|
||||
Source0: %{name}-src-%{rev}.tar.bz2
|
||||
Url: https://github.com/inhub
|
||||
Source0: https://github.com/ihhub/fheroes2/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
Source2: fheroes2.sh
|
||||
Source3: fheroes2.png
|
||||
Source4: fheroes2.desktop
|
||||
Source5: fheroes2.cfg
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(sdl)
|
||||
BuildRequires: pkgconfig(SDL_image)
|
||||
BuildRequires: pkgconfig(SDL_mixer)
|
||||
BuildRequires: pkgconfig(SDL_net)
|
||||
BuildRequires: pkgconfig(SDL_ttf)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(SDL2_image)
|
||||
BuildRequires: pkgconfig(SDL2_mixer)
|
||||
BuildRequires: pkgconfig(SDL2_net)
|
||||
BuildRequires: pkgconfig(SDL2_ttf)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%description
|
||||
|
@ -27,7 +25,7 @@ You need to copy files from data and maps directories from original game
|
|||
into your /usr/share/games/fheroes2/{maps,data} directories respectively.
|
||||
|
||||
%files
|
||||
%doc AUTHORS changelog.txt COPYING LICENSE README
|
||||
%doc LICENSE
|
||||
%{_gamesbindir}/*
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
|
@ -36,27 +34,27 @@ into your /usr/share/games/fheroes2/{maps,data} directories respectively.
|
|||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -qn %{name}-src-%{rev}/fheroes2
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
cd src
|
||||
%setup_compile_flags
|
||||
%make \
|
||||
%set_build_flags
|
||||
%make_build \
|
||||
WITH_AI=simple \
|
||||
WITH_SDL2="ON" \
|
||||
CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
|
||||
|
||||
%install
|
||||
# let's create directory structure...
|
||||
mkdir -p %{buildroot}%{_gamesbindir}
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
|
||||
%__mkdir_p %{buildroot}%{_gamesbindir}
|
||||
%__mkdir_p %{buildroot}%{_datadir}/applications
|
||||
%__mkdir_p %{buildroot}%{_datadir}/pixmaps
|
||||
%__mkdir_p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
|
||||
|
||||
# and install what we need where we need it to be...
|
||||
install -pm755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin
|
||||
install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
|
||||
install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
%__install -pm755 %{name} %{buildroot}%{_gamesbindir}/%{name}.bin
|
||||
%__install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
|
||||
#__install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
%__install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
%__install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
%__install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
%__install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
|
||||
|
|
Loading…
Add table
Reference in a new issue