Репозиторий Sisyphus
Последнее обновление: 25 августа 2019 | Пакетов: 17347 | Посещений: 14706060
en ru br
Репозитории ALT
S:0.93.1-alt1
5.1: 0.92-alt1
4.1: 0.91-alt1.qa1
www.altlinux.org/Changes

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

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

Name: tecnoballz
Version: 0.93.1
Release: alt1
Summary: A Brick Busting game

Group: Games/Arcade
License: GPLv3+
Url: http://linux.tlk.fr/games/TecnoballZ/
Source0: http://linux.tlk.fr/games/TecnoballZ/download/%name-%version.tgz
Source1: %name.xpm
Source2: %name.desktop

BuildRequires: desktop-file-utils xorg-util-macros

# Automatically added by buildreq on Tue Dec 02 2008

BuildRequires: gcc-c++ imake libSDL-devel libSDL_image-devel libSDL_mixer-devel libX11-devel libmikmod-devel libsmpeg-devel libvorbis-devel xorg-cf-files tinyxml-devel

%description
TecnoballZ is a "breaking blocks" game that was first written for the
Amiga platfrom.
You'll need to break all the blocks in each level. The game is divided
into Areas which are divided into Levels. Between some levels, you
have to defeat a guardian to pass to the next level. When passing an
Area, a new edge is open. You can buy weapons and bonus between levels
with the money earned during the game.

%prep
%setup

# fix .am bug

##sed -i 's/supervisor.c /supervisor.cc /' src/Makefile.am

#fix man encodig

#iconv -f ASCII -t UTF-8 man/tecnoballz.1 > man/tecnoballz.1.conv && mv -f man/tecnoballz.1.conv man/tecnoballz.1
iconv -f ISO8859-1 -t UTF-8 man/%name.fr.6 > man/%name.fr.6.conv && mv -f man/%name.fr.6.conv man/%name.fr.6

%build
rm -rf a* config.log config.status Makefile configure config.h
%autoreconf
%configure --bindir=%_gamesbindir --datadir=%_gamesdatadir --localstatedir=%_localstatedir/games

%make_build gamesdir=%_gamesbindir datadir=%_gamesdatadir scoredir=%_localstatedir/games

%install
%makeinstall DESTDIR=%buildroot gamesdir=%_gamesbindir datadir=%_gamesdatadir scoredir=%_localstatedir/games

# install man6

mkdir -p %buildroot%_mandir/man6/
mkdir -p %buildroot%_mandir/fr/man6/
#sed s/TH\ TecnoballZ/TH\ TecnoballZ\ 6/ < man/%name.1 > man/%name.6
#sed s/TH\ TecnoballZ/TH\ TecnoballZ\ 6/ < man/%name.fr.1 > man/%name.fr.6
install -p -m0644 man/%name.6 %buildroot%_man6dir/%name.6
install -p -m0644 man/%name.fr.6 %buildroot%_mandir/fr/man6/%name.6
install -p -m0644 src/TecnoballZ/*.xml %buildroot%_gamesdatadir/%name
cp -r src/TecnoballZ/texts %buildroot%_gamesdatadir/%name/

# install desktop file

mkdir -p %buildroot%_desktopdir
desktop-file-install --vendor "" \
 --dir %buildroot%_desktopdir \
 %SOURCE2

# install icon

mkdir -p %buildroot%_niconsdir
install -p -m 0644 %SOURCE1 %buildroot%_niconsdir/%name.xpm

# TODO find_lang


%files
%attr(2711,root,games) %_gamesbindir/%name
%_gamesdatadir/%name
%_man6dir/*
#_mandir/fr/man6/%name.6*
%_niconsdir/%name.xpm
%_desktopdir/%name.desktop
%doc AUTHORS CHANGES COPYING README
%attr(664,root,games) %config(noreplace) %_localstatedir/games/%name.hi

%changelog

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

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