Sisyphus repository
Last update: 29 september 2020 | SRPMs: 17704 | Visits: 19315504
en ru br
ALT Linux repos

Group :: Games/Other
RPM: npush

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install gcc-c++
# END SourceDeps(oneline)
# see
%define _localstatedir %{_var}
Name: npush
Version: 0.7
Release: alt2_19
Summary: A logic game similar to Sokoban

Group: Games/Other
License: GPLv2+
# patch npush.cpp to fix an issue with level path
Patch0: npush-0.7-level.patch

BuildRequires: libncurses++-devel libncurses-devel libncursesw-devel libtic-devel libtinfo-devel desktop-file-utils

nPush is a logic game similar to Sokoban and Boulder Dash.
You need to collect all the gold on the level and reach the exit.
To make it hard there are some rocks that stand in your way,
and you also have some dynamite to blast them away.
Main difference from Sokoban, KSokoban and similar games is that you
can have multiple player-controlled characters you can move on the screen.

nPush is a terminal based application and uses nCurses library for
user interface.

%setup -q
%patch0 -p0

# as-needed

sed -i -e 's,-lncurses -o $(PROGRAM) $(OBJECTS),-o $(PROGRAM) $(OBJECTS) -lncurses,' Makefile


%make_build CFLAGS="${RPM_OPT_FLAGS}"


mkdir -p  %{buildroot}%{_bindir}
install -p -m 755 npush %{buildroot}%{_bindir}/npush

mkdir -p %{buildroot}%{_datadir}/npush
cp -ra levels*  %{buildroot}%{_datadir}/npush

# desktop file stuff

desktop-file-install \
--add-category="LogicGame" \
--delete-original \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \

# icon

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps

install -p -m 0644 %{name}.png \



Full changelog you can see here

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