You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
8 years ago
|
|
||
4 years ago
|
CMAKE_MAKEFILE_GENERATOR=emake
|
||
4 years ago
|
inherit cmake desktop wrapper xdg
|
||
8 years ago
|
|
||
4 years ago
|
DESCRIPTION="Free 2D Zelda fangame parody"
|
||
|
HOMEPAGE="https://www.solarus-games.org/"
|
||
2 years ago
|
SRC_URI="https://gitlab.com/solarus-games/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
|
||
|
S="${WORKDIR}/${PN}-v${PV}"
|
||
8 years ago
|
|
||
|
LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
RESTRICT="mirror bindist"
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
2 years ago
|
>=games-engines/solarus-1.6
|
||
|
<games-engines/solarus-1.7
|
||
4 years ago
|
"
|
||
8 years ago
|
|
||
2 years ago
|
BDEPEND="
|
||
|
app-arch/zip
|
||
|
"
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
4 years ago
|
cmake_src_prepare
|
||
8 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DSOLARUS_INSTALL_DATAROOTDIR="/usr/share"
|
||
|
-DSOLARUS_INSTALL_BINDIR="/usr/bin"
|
||
|
)
|
||
4 years ago
|
cmake_src_configure
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
cmake_src_install
|
||
8 years ago
|
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
|
||
2 years ago
|
rm "${ED}/usr/bin/${PN}" || die
|
||
|
make_wrapper ${PN} "solarus-run \"${EPREFIX}/usr/share/solarus/${PN}\""
|
||
8 years ago
|
|
||
2 years ago
|
make_desktop_entry ${PN} "Zelda: Mystery of Solarus XD"
|
||
8 years ago
|
}
|