diff --git a/games-strategy/unciv-bin/Manifest b/games-strategy/unciv-bin/Manifest index 8423c287cc..54a257c396 100644 --- a/games-strategy/unciv-bin/Manifest +++ b/games-strategy/unciv-bin/Manifest @@ -1 +1,2 @@ DIST unciv-bin-4.15.2.jar 55155994 BLAKE2B 5940c04447573f825ed28cb994cf65315216835ce390c04e6b6353361fb5428f13bc2d032838c5166ec628c05feeee07d3a549e8e52d10fec841d5d1cf055feb SHA512 7571fba7540b40fd159e95c26d15a2a980cb0657824704c9c552ce95ef2b26b944e01a6a18d56c72f2395a296e86f66b9f8078a610a34643b47136e84e39ab2d +DIST unciv-bin-4.15.6_p1.jar 55233049 BLAKE2B 2740e43206c98c66c4f05c876f5fb5f9a979220dbb3a35ae97626b74d48252389d28ca18113ef3f09e5c71b81ee4ef723447b01707aa5cf6044816159531c3fa SHA512 4eb7e342986e48244573bc9b1db56a9731958f169d5790149fdea2839a7fdd346fbc570d7cd54c8fc04d7aca6f1ac4079e8f0849ca1428012a109f02c36429c7 diff --git a/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild new file mode 100644 index 0000000000..6efb8c437f --- /dev/null +++ b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild @@ -0,0 +1,34 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-pkg-2 + +MY_PV=${PV/_p/-patch} +DESCRIPTION="Turn-based historical strategy game, a remake of Civ V" +HOMEPAGE="https://github.com/yairm210/Unciv" +SRC_URI="https://github.com/yairm210/Unciv/releases/download/${MY_PV}/Unciv.jar -> ${P}.jar" +S="${WORKDIR}" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="-* ~amd64" # the jar also should work on arm{,64} but I am unable to test that + +RDEPEND=">=virtual/jre-11:*" # could be more +BDEPEND="app-arch/unzip" + +declare -r IMG_PATH="ExtraImages/Icon.png" + +src_unpack() { + cp "${DISTDIR}/${P}.jar" "${WORKDIR}" + unzip ${P}.jar ${IMG_PATH} || die "Extracting icon failed" +} + +src_install() { + java-pkg_newjar "${P}.jar" + java-pkg_dolauncher "${PN}" --jar "${PN}.jar" + newicon --size 32 ${IMG_PATH} unciv.png || die "Installing icon failed" + # this desktop file is better than upstream's + make_desktop_entry "${PN}" Unciv-bin unciv "Game;StrategyGame" "Terminal=false" +}