summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <Matt.Jolly@footclan.ninja>2022-09-17 22:32:40 +1000
committerSam James <sam@gentoo.org>2022-10-12 23:57:12 +0100
commitd1f0d8d5fe3cda7c3d0d991eded53718835722cc (patch)
tree93f7f88542bfd7e588dc7c890d24bd2959f984d9 /games-rpg
parentgames-engines/solarus: drop 1.3.1-r100 (diff)
downloadgentoo-d1f0d8d5fe3cda7c3d0d991eded53718835722cc.tar.gz
gentoo-d1f0d8d5fe3cda7c3d0d991eded53718835722cc.tar.bz2
gentoo-d1f0d8d5fe3cda7c3d0d991eded53718835722cc.zip
games-rpg/zsxd: add 1.12.2
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/zsxd/Manifest1
-rw-r--r--games-rpg/zsxd/metadata.xml2
-rw-r--r--games-rpg/zsxd/zsxd-1.12.2.ebuild50
3 files changed, 52 insertions, 1 deletions
diff --git a/games-rpg/zsxd/Manifest b/games-rpg/zsxd/Manifest
index 5e3a5f7c19ab..dd4c228e28c1 100644
--- a/games-rpg/zsxd/Manifest
+++ b/games-rpg/zsxd/Manifest
@@ -1 +1,2 @@
+DIST zsxd-v1.12.2.tar.gz 4439231 BLAKE2B 1cba628a427cae10e0b08498690b95ef5a60f62531b1b4c7635ccbd561201ff54511b5c32e8e5e3251625e08276466ef2faa81f62eb2b67669cc001b00b7f215 SHA512 434c5f433be6a535c9976175d54d16d39c65d40c3a03199453282bef9a79e3eec71c676cf4a57a621460ff3e5397ec595d0e0dae8dc45afe13d45a5a5f003614
DIST zsxd-zsxd-1.9.0.tar.gz 3690390 BLAKE2B c5b6a671c5b5f8ba702ba23f447c0858aa870730a752761f65092b8e1f4a0879f2877fabf0e52a71be380ff25628f0be94f01f6a02009bfe4f7d1952f50ba5f4 SHA512 a457374adc7a8f4b7872b6f6693051d1499320f4349d55009e581132b62f5eebd6e35cc80c1ac14c5c80b74145fb7ac26b312f3f329df71c36e71d9a38383f05
diff --git a/games-rpg/zsxd/metadata.xml b/games-rpg/zsxd/metadata.xml
index 66f546caca71..893e083a5fc6 100644
--- a/games-rpg/zsxd/metadata.xml
+++ b/games-rpg/zsxd/metadata.xml
@@ -6,6 +6,6 @@
<name>Gentoo Games Project</name>
</maintainer>
<upstream>
- <remote-id type="github">christopho/zsxd</remote-id>
+ <remote-id type="gitlab">solarus-games/zsxd</remote-id>
</upstream>
</pkgmetadata>
diff --git a/games-rpg/zsxd/zsxd-1.12.2.ebuild b/games-rpg/zsxd/zsxd-1.12.2.ebuild
new file mode 100644
index 000000000000..245082be2fd8
--- /dev/null
+++ b/games-rpg/zsxd/zsxd-1.12.2.ebuild
@@ -0,0 +1,50 @@
+# 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"
+}