commit: ebdf2542e6bc1773b49bc87d242a6e5b4a6b8559 Author: Filip Kobierski <fkobi <AT> pm <DOT> me> AuthorDate: Mon Dec 23 18:45:19 2024 +0000 Commit: Filip Kobierski <fkobi <AT> pm <DOT> me> CommitDate: Mon Dec 23 18:54:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ebdf2542
games-strategy/unciv-bin: new package, add 4.14.17 This ebuild was loosely based on the ebuild from schplaf's overlay. Signed-off-by: Filip Kobierski <fkobi <AT> pm.me> games-strategy/unciv-bin/Manifest | 1 + games-strategy/unciv-bin/metadata.xml | 19 +++++++++++++ games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild | 33 +++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/games-strategy/unciv-bin/Manifest b/games-strategy/unciv-bin/Manifest new file mode 100644 index 000000000..2d8d7a201 --- /dev/null +++ b/games-strategy/unciv-bin/Manifest @@ -0,0 +1 @@ +DIST unciv-bin-4.14.17.jar 55257536 BLAKE2B 8683dd1f4c85e4bb9731cbfcd751d6ac937cee8580ad58556b6ab28c9e7283af6e789a9e51c23585beee4ac75109f0729a59dc56ea76f25d43c57629ed940ddf SHA512 62cbb7feb6f15a69f152c6c62a6aed52591db81541e499419a12720a0c927fcc069d3328b94c850c14a21a6addacb3344c44311ccddb882ca154603df4398fe9 diff --git a/games-strategy/unciv-bin/metadata.xml b/games-strategy/unciv-bin/metadata.xml new file mode 100644 index 000000000..908929c81 --- /dev/null +++ b/games-strategy/unciv-bin/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Filip Kobierski</name> + </maintainer> + <longdescription> + Unciv is an open source, mod-friendly remake of Civ V, made with Kotlin and LibGDX. + It has a touch-friendly user interface but also keyboard binds, so do not think it is mainly for Android. + In this game you can build your civilization, research technologies, expand your cities and finally defeat your foes! + </longdescription> + <upstream> + <bugs-to>https://github.com/yairm210/Unciv/issues</bugs-to> + <changelog>https://github.com/yairm210/Unciv/blob/master/changelog.md</changelog> + <doc>https://yairm210.itch.io/unciv</doc> + <remote-id type="github">yairm210/Unciv</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild b/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild new file mode 100644 index 000000000..411a9bcea --- /dev/null +++ b/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild @@ -0,0 +1,33 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-pkg-2 + +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/${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" +}
