Files
guru/games-arcade/opensurge/opensurge-9999.ebuild
Haelwenn (lanodan) Monnier 5c47341dae games-arcade/opensurge: add 0.6.1.2
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2025-11-08 10:23:34 +01:00

43 lines
1.1 KiB
Bash

# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alemart/opensurge"
else
SRC_URI="https://github.com/alemart/opensurge/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="fun 2D retro platformer inspired by old-school Sonic games"
HOMEPAGE="https://opensurge2d.org/"
LICENSE="Allegro Apache-2.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 GPL-3+ MIT OFL-1.1 WTFPL-2"
SLOT="0"
# Allegro:5 libs to USE
# - image: jpeg,png
# - primitives: opengl
# - font+ttf: truetype
# - acodec+audio: alsa/openal/oss/pulseaudio (present in REQUIRED_USE)
# - dialog: gtk
# allegro[vorbis] isn't in CMakeList.txt but is required for the .ogg assets
DEPEND="
>=media-libs/allegro-5.2.7:5[jpeg,png,opengl,truetype(-),gtk(-),vorbis,physfs]
>=dev-games/surgescript-0.6.1:=
>=dev-games/physfs-3.2.0
"
RDEPEND="${DEPEND}"
src_configure() {
local mycmakeargs=(
-DGAME_BINDIR="/usr/bin"
-DGAME_DATADIR="/usr/share/${PN}"
)
cmake_src_configure
}