public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Filip Kobierski" <fkobi@pm.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/
Date: Mon, 23 Dec 2024 18:54:50 +0000 (UTC)	[thread overview]
Message-ID: <1734980086.ebdf2542e6bc1773b49bc87d242a6e5b4a6b8559.fkobi@gentoo> (raw)

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>fkobi@pm.me</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"
+}


             reply	other threads:[~2024-12-23 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23 18:54 Filip Kobierski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-12 12:46 [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/ Filip Kobierski
2025-02-01  9:45 Filip Kobierski
2025-02-01 15:05 Takuya Wakazono

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1734980086.ebdf2542e6bc1773b49bc87d242a6e5b4a6b8559.fkobi@gentoo \
    --to=fkobi@pm.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox