Репозиторий Sisyphus
Последнее обновление: 20 ноября 2019 | Пакетов: 17512 | Посещений: 15814832
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: escape

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
Name: escape
Version: 200912250
Release: alt3_13
Summary: Extensible block-pushing puzzle game

Group: Games/Other
License: GPLv3
URL: http://escape.spacebar.org/

Source0: http://escape.spacebar.org/source/%{name}-src-%{version}.tar.bz2
Source1: %{name}.desktop

Patch0: escape-200912250-update-remove.patch
Patch1:     %name-%version-alt-gcc6.patch

BuildRequires: libSDL-devel libSDL_image-devel libSDL_net-devel
BuildRequires: desktop-file-utils
Requires: icon-theme-hicolor
Source44: import.info

Escape is a tile-based puzzle game in the style of "Adventures of
Lolo" or "Chip's Challenge." Unlike either of those games, Escape
doesn't rely at all on reflexes--it's all about your brain.

Although Escape comes with hundreds of levels, the game places an
emphasis on the composition of new puzzles. Thus Escape has a
built-in level editor and facilities for automatically sharing
puzzles with other players.

%setup -q -n %{name}-src

# fix update bug

%patch0 -p1 -b .update-remove
%patch1 -p2

# fix permissions for debuginfo packages

find . \( -name '*.h' -o -name '*.cpp' \) -type f -print0 | xargs -0 chmod 0644

make LINUX=1 \
LDLIBS="`pkg-config --libs sdl` -lSDL_image -lSDL_net" \
CXXFLAGS="`pkg-config --cflags sdl` $RPM_OPT_FLAGS" \
CPPFLAGS="-DMULTIUSER -DDATADIR=\\\"%{_datadir}/%{name}/data/\\\" -DSTARTUP_LEVELS=\\\"%{_datadir}/%{name}/levels/\\\" -DNOSOUND" \

install -D -m0755 -p escape.exe \

# graphics

mkdir -p $RPM_BUILD_ROOT%{_datadir}/escape/data
install -D -m0644 -p -t $RPM_BUILD_ROOT%{_datadir}/escape/data *.png

# levels

mkdir -p $RPM_BUILD_ROOT%{_datadir}/escape/levels
cp -a official triage mylevels $RPM_BUILD_ROOT%{_datadir}/escape/levels
find $RPM_BUILD_ROOT%{_datadir}/escape/levels -type f -print0 | xargs -0 chmod 0644
find $RPM_BUILD_ROOT%{_datadir}/escape/levels -type d -name CVS -print0 | xargs -0 rm -rf

# icon

install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
cp -a icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# desktop file

desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \

# Register as an application to be visible in the software center

# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
EmailAddress: tom7 at cs.cmu.edu
SentUpstream: 2014-09-24
 <id type="desktop">escape.desktop</id>
 <summary>solve the puzzle to find the exit and escape</summary>
     Escape is a puzzle game that relies less on reflexes and more on
     solving the puzzle.
     The player has to move blocks and detonate bombs and other devices in a
     certain sequence to be able to solve the puzzle, and escape the maze.
     It features many levels of varying difficulty.
 <url type="homepage">http://escape.spacebar.org/</url>
   <screenshot type="default">http://escape.spacebar.org/images/california-roll-screenshot.png</screenshot>

%doc COPYING design.txt escape.txt README


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin