Sisyphus repository
Last update: 30 january 2023 | SRPMs: 18151 | Visits: 26596126
en ru br
ALT Linux repos
S:1.0-alt3.qa4
5.0: 1.0-alt3
4.1: 0.1-alt1.1
4.0: 0.1-alt1.1
3.0: 0.1-alt1.1

Group :: Games/Strategy
RPM: pachi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: pachi
Version: 0.1
Release: alt1.1

Summary: Cool 2D game like Manic Miner, Jet set Willy and more from the 80s
License: GPL
Group: Games/Strategy
URL: http://http://dragontech.sourceforge.net/

BuildRequires: gcc-c++ libSDL-devel libSDL_mixer-devel ImageMagick

Source: Pachi.tar.bz2
Patch: Pachi-makefile-alt.patch

%description
Pachi el marciano is a cool 2D platforms game inspired in games like
Manic Miner, Jet set Willy and more from the 80s.

%prep
%setup -q -n Pachi
%patch -p0

%build
%configure --datadir=%_datadir/games

%install
%make_install install DESTDIR=%buildroot
%__mkdir_p %buildroot%_prefix/games
%__mv %buildroot%_bindir/%name %buildroot%_prefix/games/%name

# menu

%__cat <<__MENU__ >%name.menu
?package(%name): needs="x11" section="Games/Arcade" \
title="Pachi" longtitle="Pachi el marciano" \
command="%_prefix/games/%name" icon=%name.png
__MENU__
%__install -pD -m644 %name.menu %buildroot%_menudir/%name
# icons
convert Tgfx/icon.bmp -resize 16x16 Tgfx/%name-16.png
convert Tgfx/icon.bmp -resize 32x32 Tgfx/%name-32.png
convert Tgfx/icon.bmp -resize 48x48 Tgfx/%name-48.png
%__install -pD -m644 Tgfx/%name-16.png %buildroot%_miconsdir/%name.png
%__install -pD -m644 Tgfx/%name-32.png %buildroot%_iconsdir/%name.png
%__install -pD -m644 Tgfx/%name-48.png %buildroot%_liconsdir/%name.png

%post
%update_menus

%postun
%clean_menus

%files
%doc AUTHORS ChangeLog
%attr(2711,root,games) %_prefix/games/%name
%_datadir/games/%name
%_menudir/%name
%_iconsdir/%name.png
%_miconsdir/%name.png
%_liconsdir/%name.png
%_localstatedir/games/%name
%config(noreplace) %attr(664,games,games) %_localstatedir/games/%name/data/scores.dat

%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