Репозиторий Sisyphus
Последнее обновление: 22 января 2021 | Пакетов: 17776 | Посещений: 20111083
en ru br
Репозитории ALT

Группа :: Игры/Аркады
Пакет: cooldown

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

Name: cooldown
# svn info cooldown | sed -n 's/Revision: *//p'
Version: 24
Release: alt2
Summary: Advanced PipeMania clone
Group: Games/Arcade
# svn checkout http://cooldown-game.googlecode.com/svn/trunk cooldown
Source: %name-%version.tar
Source1: %{name}4.png
Patch: %name-linux.patch
Patch1:   %name-24-alt-glibc-2.16.patch
Patch2:     %name-g++8.patch
License: GPLv3
URL: http://cooldown-game.googlecode.com

Requires: %name-data == %version, %name-font

# Automatically added by buildreq on Fri Sep 03 2010

BuildRequires: ImageMagick-tools cmake gcc-c++ libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel

This game was inspired by the old game PipeMania, although it changed
a lot during development. Cooldown is created as an entry for Pandora
Angst Coding Competition 2010, but the development doesn't stop at the
deadline ;)

Your task is to cool down the ball coming from the start field. 100
levels, increasing difficulty, pipes in 4 colors, special tiles,
multiple balls.

%package data
Summary: CC-BY data for %name game
License: CC-BY
Group: Games/Arcade

%description data
CC-BY data for %name game

%package font
Summary: Distributable non-free font for %name game
License: Distributable
Group: Games/Arcade

%description font
Distributable non-free font for %name game

%patch -p1
%patch1 -p2
%patch2 -p2

find . -depth -name .svn -exec rm -rf {} \;
sed -i 's| at DATADIR at |%_gamesdatadir/%name|' src/main.cpp

cat > %name.desktop << at  at  at
[Desktop Entry]
GenericName=Pipe connetcting game
at  at  at

for N in 128x128 24x24 64x64 32x32 48x48; do
convert %SOURCE1 -resize $N $N.png; done

mkdir build
cd build
cmake .. -DCMAKE_SKIP_RPATH:BOOL=yes \
           -DCMAKE_BUILD_TYPE=MinSizeRel \
           -DCMAKE_C_FLAGS:STRING='-pipe -Wall -O2' \
           -DCMAKE_CXX_FLAGS:STRING='-pipe -Wall -O2' \
           -DCMAKE_INSTALL_PREFIX=/usr \
           -DLIB_DESTINATION=lib64 \
           %if "lib64" == "lib64"


for N in *x*.png; do
 install -D $N %buildroot%_iconsdir/hicolor/${N%%.*}/apps/%name.png
install -D %name.desktop %buildroot%_desktopdir/%name.desktop

cd build
mkdir -p %buildroot%_gamesdatadir/%name
for N in ../data/*; do cp -a `basename $N` %buildroot%_gamesdatadir/%name/; done
install -D %name %buildroot%_gamesbindir/%name

%doc [^C]*.txt*
%dir %_gamesdatadir/%name

%files data

%files font


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

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