Репозиторий Sisyphus
Последнее обновление: 24 июня 2022 | Пакетов: 17496 | Посещений: 24438908
en ru br
Репозитории ALT

Группа :: Игры/Аркады
Пакет: opensurge

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

Name: opensurge
Summary: 2D retro platformer inspired by Sonic games
License: GPLv3
Release: alt1

Group: Games/Arcade
Url: https://opensurge2d.org
Packager: Artyom Bystrov <arbars at altlinux.org>
Source: %name-%version.tar

BuildRequires: liballegro5.2-devel
BuildRequires: rpm-macros-cmake
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libappstream-glib
BuildRequires: surgescript-devel
BuildRequires: fontconfig
BuildRequires: ImageMagick-tools
Requires: %name-data = %version-%release

Open Surge is a fun 2D retro platformer inspired by Sonic games,
and a game creation system that lets you unleash your creativity!
Open Surge is two projects in one: a game
and a game creation system (game engine).

%package data
Summary: Data files for opensurge
Group: Games/Arcade
BuildArch: noarch

# Most of the game's assets are licensed under CC-BY 3.0.

# Some individual files are licensed under CC-BY-SA 3.0,
# CC0, Giftware, MIT, and Public Domain.
# There also bundled fonts (Google Roboto and HanYang Gothic A1),
# but we un-bundle them, so they don't apply to the License tag here.
# For a detailed list, consult src/misc/copyright_data.csv
# inside the source archive.

License: CC-BY and CC-BY-SA and CC0 and Giftware and MIT and Public Domain

%description data
Data files (graphics, music, sounds) required by Open Surge.


%cmake \
-DUSE_A5=ON  \
"-DGAME_BINDIR=%_bindir/" \
"-DGAME_DATADIR=%_datadir/%name"  \
"-DDESKTOP_ENTRY_PATH=%_desktopdir"  \
"-DDESKTOP_ICON_PATH=%_pixmapsdir"  \
"-DDESKTOP_METAINFO_PATH=%_datadir/metainfo"  \



# install menu entry

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop << EOF
[Desktop Entry]
Name=Open Surge
Comment=2D retro platformer inspired by Sonic games

# install menu icons

for N in 16 32 48 64 128;
convert surge.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %buildroot%_iconsdir/hicolor/${N}x${N}/apps/%name.png

%dir %_iconsdir/hicolor/64x64
%dir %_iconsdir/hicolor/64x64/apps
%dir %_iconsdir/hicolor/128x128
%dir %_iconsdir/hicolor/128x128/apps

%files data
%doc licenses/CC-BY-3.0-legalcode.txt
%doc licenses/CC-BY-SA-3.0-legalcode.txt
%doc licenses/CC0-1.0-legalcode.txt
%doc licenses/Giftware-license.txt
%doc licenses/MIT-license.txt


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

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