Github messages for voidlinux
 help / color / mirror / Atom feed
From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: mindustry-7.0_b146
Date: Fri, 05 Apr 2024 09:40:55 +0200	[thread overview]
Message-ID: <20240405074056.0464C20DDB@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49693@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

There is an updated pull request by MIvanchev against master on the void-packages repository

https://github.com/MIvanchev/void-packages mindustry
https://github.com/void-linux/void-packages/pull/49693

[WIP] New package: mindustry-7.0_b146
#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
- 

A patch file from https://github.com/void-linux/void-packages/pull/49693.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mindustry-49693.patch --]
[-- Type: text/x-diff, Size: 4153 bytes --]

From 37f17211c23f4cfbf80bb921a7395d8732812036 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Wed, 3 Apr 2024 17:05:39 +0200
Subject: [PATCH] New package: mindustry-7.0_b146

---
 srcpkgs/mindustry/files/mindustry             |  2 +
 srcpkgs/mindustry/files/mindustry-server      |  2 +
 .../mindustry/files/mindustry-server.desktop  |  9 ++++
 srcpkgs/mindustry/files/mindustry.desktop     |  9 ++++
 srcpkgs/mindustry/template                    | 48 +++++++++++++++++++
 5 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/mindustry/files/mindustry
 create mode 100644 srcpkgs/mindustry/files/mindustry-server
 create mode 100644 srcpkgs/mindustry/files/mindustry-server.desktop
 create mode 100644 srcpkgs/mindustry/files/mindustry.desktop
 create mode 100644 srcpkgs/mindustry/template

diff --git a/srcpkgs/mindustry/files/mindustry b/srcpkgs/mindustry/files/mindustry
new file mode 100644
index 00000000000000..392ab236e52782
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/java -jar /usr/share/mindustry/Mindustry.jar "$@"
diff --git a/srcpkgs/mindustry/files/mindustry-server b/srcpkgs/mindustry/files/mindustry-server
new file mode 100644
index 00000000000000..abbde29b1db716
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry-server
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/java -jar /usr/share/mindustry/server-release.jar "$@"
diff --git a/srcpkgs/mindustry/files/mindustry-server.desktop b/srcpkgs/mindustry/files/mindustry-server.desktop
new file mode 100644
index 00000000000000..f5bda888494a20
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry-server.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Mindustry Server
+Comment=Automation tower defense RTS (server)
+Exec=mindustry-server
+Icon=mindustry-server
+Categories=Game;
+Terminal=true
diff --git a/srcpkgs/mindustry/files/mindustry.desktop b/srcpkgs/mindustry/files/mindustry.desktop
new file mode 100644
index 00000000000000..e9f2c8377e01ca
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Mindustry
+Comment=Automation tower defense RTS
+Exec=mindustry
+Icon=mindustry
+Categories=Game;
+Terminal=false
diff --git a/srcpkgs/mindustry/template b/srcpkgs/mindustry/template
new file mode 100644
index 00000000000000..aeb3af3292f819
--- /dev/null
+++ b/srcpkgs/mindustry/template
@@ -0,0 +1,48 @@
+# Template file for 'mindustry'
+pkgname=mindustry
+version=7.0.b146
+revision=1
+_build=${version##*.b}
+hostmakedepends="openjdk17 gradle"
+depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
+short_desc="Automation tower defense RTS"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-or-later"
+homepage="https://mindustrygame.github.io/"
+distfiles="https://github.com/Anuken/Mindustry/archive/refs/tags/v${_build}.tar.gz"
+checksum=aa1684d87d9f3e1d1a2da415b5e055ea6493fe31398748447927bd903019adbd
+skip_extraction="v${_build}.tar.gz"
+build_wrksrc=Mindustry-${_build}
+
+# TODO: Make sure this template doesn't download anything.
+
+# JAVA_HOME needs to be set because otherwise gradle fails to find Java.
+
+export JAVA_HOME=/usr/lib/jvm/openjdk17
+
+post_extract() {
+	vsrcextract -C ${build_wrksrc} v${_build}.tar.gz
+}
+
+do_build() {
+	./gradlew --no-daemon dist -Pbuildversion="${_build}" desktop:dist server:dist
+}
+
+do_install() {
+	vmkdir usr/share/mindustry
+	vinstall desktop/build/libs/Mindustry.jar 644 usr/share/mindustry
+	vbin ${FILESDIR}/mindustry
+	vinstall ${FILESDIR}/mindustry.desktop 644 usr/share/applications
+	vinstall core/assets/icons/icon_64.png usr/share/icons/hicolor/64x64/apps mindustry.png
+}
+
+mindustry-server_package() {
+	short_desc+=" (server)"
+	pkg_install() {
+		vmkdir usr/share/mindustry
+		vinstall server/build/libs/server-release.jar 644 usr/share/mindustry
+		vinstall ${FILESDIR}/mindustry-server.desktop 644 usr/share/applications
+		vbin ${FILESDIR}/mindustry-server
+	        vinstall core/assets/icons/icon_64.png usr/share/icons/hicolor/64x64/apps mindustry-server.png
+	}
+}

  parent reply	other threads:[~2024-04-05  7:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-03 15:09 [PR PATCH] " MIvanchev
2024-04-03 15:19 ` [PR PATCH] [Updated] " MIvanchev
2024-04-03 15:27 ` MIvanchev
2024-04-03 15:37 ` MIvanchev
2024-04-03 15:47 ` MIvanchev
2024-04-03 17:42 ` MIvanchev
2024-04-03 17:49 ` MIvanchev
2024-04-03 17:53 ` MIvanchev
2024-04-03 17:57 ` MIvanchev
2024-04-03 17:57 ` MIvanchev
2024-04-03 18:00 ` MIvanchev
2024-04-03 18:03 ` MIvanchev
2024-04-03 18:09 ` MIvanchev
2024-04-03 18:34 ` MIvanchev
2024-04-03 18:42 ` MIvanchev
2024-04-04  6:49 ` MIvanchev
2024-04-05  7:40 ` MIvanchev [this message]
2024-04-15 13:56 ` MIvanchev

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=20240405074056.0464C20DDB@inbox.vuxu.org \
    --to=mivanchev@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).