games-rpg/zsxd - 1.12.2 (gentoo)

Search

Package Information

Description:
Free 2D Zelda fangame parody
Homepage:
https://www.solarus-games.org/
License:
all-rights-reserved CC-BY-SA-3.0 GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.12.2 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CMAKE_MAKEFILE_GENERATOR=emake
inherit cmake desktop wrapper xdg

DESCRIPTION="Free 2D Zelda fangame parody"
HOMEPAGE="https://www.solarus-games.org/"
SRC_URI="https://gitlab.com/solarus-games/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
S="${WORKDIR}/${PN}-v${PV}"

LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror bindist"

RDEPEND="
	>=games-engines/solarus-1.6
	<games-engines/solarus-1.7
"

BDEPEND="
	app-arch/zip
"

src_prepare() {
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DSOLARUS_INSTALL_DATAROOTDIR="/usr/share"
		-DSOLARUS_INSTALL_BINDIR="/usr/bin"
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install
	newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
	newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png

	# install proper wrapper script
	rm "${ED}/usr/bin/${PN}" || die
	make_wrapper ${PN} "solarus-run \"${EPREFIX}/usr/share/solarus/${PN}\""

	make_desktop_entry ${PN} "Zelda: Mystery of Solarus XD"
}

Dependencies

RDEPEND

	>=games-engines/solarus-1.6
	<games-engines/solarus-1.7

BDEPEND

	app-arch/zip

Manifest for 1.12.2

Type File Size Source URLs
DIST zsxd-v1.12.2.tar.gz 4439231 bytes https://gitlab.com/solarus-games/zsxd/-/archive/v1.12.2/zsxd-v1.12.2.tar.gz