Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37749853
en ru br
ALT Linux repos
S:6.6-alt1
5.0: 3.2-alt2
4.1: 3.2-alt0.M41.2
4.0: 2.7-alt1
3.0: 1.1.0-alt2

Other repositories

Group :: Games/Arcade
RPM: atanks

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: atanks
Version: 2.7
Release: alt1

Summary: Atomic Tanks - multi-player game similar to worms
License: GPL
Group: Games/Arcade

Url: http://atanks.sourceforge.net

Packager: Ilya Mashkin <oddity at altlinux.ru>


Source: %name-%{version}.tar.gz
Source2: %name.png
Patch: %name-gcc34-fix.patch

# Automatically added by buildreq on Mon Jan 17 2005 (-bi)

BuildRequires: gcc-c++ liballegro-devel libstdc++-devel xorg-x11-libs

%description
This is Atomic Tanks, a multi-player game similar to worms which involves firing enormous
weapons to try and destroy the other tanks.

%prep
%setup -q -n %name
#patch0 -p1
%__subst 's,-DDATA_DIR=\\\".\\\",-DDATA_DIR=\\\"%_gamesdatadir/%name\\\",' src/Makefile

%build
%__make

%install
%__mkdir_p %buildroot{%_gamesbindir,%_gamesdatadir/%name}

%__install -p -m 755 atanks %buildroot%_gamesbindir/%name
%__install -p -m 644 *.dat %buildroot%_gamesdatadir/%name/
%__install -p -m 644 *.txt %buildroot%_gamesdatadir/%name/
#menu support
%__mkdir -p %buildroot%_menudir
%__cat > %buildroot%_menudir/%name << EOF
?package(%name):command="%name" needs="x11" \
icon="%name.png" section="Amusement/Arcade" title="Atomic Tanks" \
longtitle="Atomic Tanks - worms like game"
EOF
%__mkdir -p %buildroot%_iconsdir
%__install -m 644 %SOURCE2 %buildroot%_iconsdir/

%post
%update_menus

%postun
%clean_menus

%files
%doc README TODO Changelog
%_gamesbindir/*
%dir %_gamesdatadir/%name
%_gamesdatadir/%name/*
%_menudir/%name
%_iconsdir/%name.png

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin