Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37434745
en ru br
ALT Linux repos
S:0.43.2-alt1_5

Group :: Games/Other
RPM: bastet

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Games/Other
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install unzip
# END SourceDeps(oneline)
BuildRequires: boost-program_options-devel
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: bastet
Version: 0.43.2
Release: alt1_5
Summary: An evil falling bricks game

License: GPL-3.0-or-later
URL: https://github.com/fph/bastet
Source0: https://github.com/fph/bastet/archive/%{version}.zip
Source1: %{name}.desktop
# self-made icon
Source2: %{name}.png
Patch0: bastet-tr1.patch
Patch1:         bastet-fmt-str.patch

BuildRequires:  gcc-c++
BuildRequires: boost-complete libncurses++-devel libncurses-devel libncursesw-devel libtic-devel libtinfo-devel desktop-file-utils
Source44: import.info


%description
Bastet is a simple ncurses-based falling bricks like game. Unlike
normal, however, Bastet does not choose your next brick at random.
Instead, it uses a special algorithm designed to choose the worst
brick possible. As you can imagine, playing Bastet can be a very
frustrating experience!


%prep
%setup -q

%patch0 -p1
%patch1 -p0

# remove reference to Tetris to match our guidelines

sed -e 's/Tetris(R)/any falling bricks game/g' -e 's/Tetris/falling bricks game/g' \
-e 's/tetris/falling bricks game/g' README > README.new
mv -f README.new README
# remove also any reference to Tetris in the bastet manpage
sed -e 's/Tetris(r)/any falling bricks game/g' -e 's/tetris/falling bricks game/g' \
bastet.6 > bastet.6.new
mv -f bastet.6.new bastet.6


%build

%make_build CXXFLAGS="%{optflags}"


%install

# install the AppData file

mkdir -p %{buildroot}%{_datadir}/appdata
cp bastet.appdata.xml %{buildroot}%{_datadir}/appdata/

mkdir -p %{buildroot}%{_bindir}

install -p -m 755 bastet %{buildroot}%{_bindir}/bastet

# below the desktop file and icon stuff

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}

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

install -p -m 0644 %{SOURCE2} \
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# manpage

mkdir -p %{buildroot}%{_mandir}/man6/
     install -p -m 0644 %{name}.6 \
     %{buildroot}%{_mandir}/man6/%{name}.6


%files
%doc AUTHORS LICENSE NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man6/*


%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