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

Группа :: Игры/Головоломки
Пакет: caph

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

Name: caph
Version: 1.1
Release: alt1.1
Group: Games/Puzzles
Summary: A sandbox game, based on physics
Source: %name-%version.tar.bz2
Patch: caph-1.1-alt-verbose.patch
Patch1: caph-1.1-alt-debuginfo.patch
Url: http://caphgame.sourceforge.net/
License: GPLv3

# Automatically added by buildreq on Mon Oct 04 2010

BuildRequires: libGL-devel libSDL-devel libpng-devel

%description
It is a sandbox game, based on physics. The game aim is to make contact
red object with green object. You can use various objects, solid, wire
(rope), and bendable objects. Gravitation will help you.

%prep
%setup
%patch -p2
%patch1 -p2
sed -i '
/^#define SYS_DATA_DIR/c\
#define SYS_DATA_DIR "%_gamesdatadir/%name/"
' src/caph.c

cat > %name.sh << at  at  at
#!/bin/sh

CAPHDIR="\$HOME/.%name"
SHAREDIR="%_gamesdatadir/%name"
test -d "\$CAPHDIR" && cd "\$CAPHDIR" || {
rm -rf "\$CAPHDIR"
mkdir -p "\$CAPHDIR"
cd "\$CAPHDIR"
cp \`find "\$SHAREDIR"/* -maxdepth 0 -type f\` .
for D in \`find "\$SHAREDIR"/* -maxdepth 0 -type d\`; do
 LD=\`basename \$D\`
 mkdir -p "\$LD"
 ln -s "\$D"/* "\$LD"/
done
}

exec "\$0.bin"
at  at  at

#mkdir bin


# TODO desktop


%build
cd src
./confg
./build

%install
mkdir -p "%buildroot%_gamesdatadir"
cp -r share/caph "%buildroot%_gamesdatadir/%name"
install -D bin/%name %buildroot%_gamesbindir/%name.bin
install -m755 -D %name.sh %buildroot%_gamesbindir/%name

%files
%doc doc
%_gamesbindir/*
%_gamesdatadir/%name

%changelog

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

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