Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: mindustry-97
Date: Sat, 26 Oct 2019 16:32:26 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15809@inbox.vuxu.org> (raw)

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

There is a new pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages mindustry
https://github.com/void-linux/void-packages/pull/15809

New package: mindustry-97


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

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

From c25d02c4d7dd99a5ac3990922abd3582e13b8920 Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Fri, 25 Oct 2019 11:08:27 +0200
Subject: [PATCH] New package: mindustry-97

---
 srcpkgs/mindustry-server                      |  1 +
 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                    | 42 +++++++++++++++++++
 6 files changed, 65 insertions(+)
 create mode 120000 srcpkgs/mindustry-server
 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-server b/srcpkgs/mindustry-server
new file mode 120000
index 00000000000..9eaea683d63
--- /dev/null
+++ b/srcpkgs/mindustry-server
@@ -0,0 +1 @@
+mindustry
\ No newline at end of file
diff --git a/srcpkgs/mindustry/files/mindustry b/srcpkgs/mindustry/files/mindustry
new file mode 100644
index 00000000000..392ab236e52
--- /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 00000000000..abbde29b1db
--- /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 00000000000..460ad8a1c14
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry-server.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Mindustry Server
+Comment=Server of a sandbox tower defense game
+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 00000000000..792c170fd87
--- /dev/null
+++ b/srcpkgs/mindustry/files/mindustry.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Mindustry
+Comment=A sandbox tower defense game
+Exec=mindustry
+Icon=mindustry
+Categories=Game;
+Terminal=false
\ No newline at end of file
diff --git a/srcpkgs/mindustry/template b/srcpkgs/mindustry/template
new file mode 100644
index 00000000000..c55fb57f120
--- /dev/null
+++ b/srcpkgs/mindustry/template
@@ -0,0 +1,42 @@
+# Template file for 'mindustry'
+pkgname=mindustry
+version=97
+revision=1
+wrksrc=Mindustry-${version}
+#archs="i686 x86_64"
+hostmakedepends="openjdk gradle libicns"
+depends="virtual?java-runtime"
+short_desc="Sandbox tower-defense game"
+maintainer="teldra <teldra@rotce.de>"
+license="GPL-3.0-or-later"
+homepage="https://mindustrygame.github.io/"
+distfiles="https://github.com/Anuken/Mindustry/archive/v${version}.tar.gz"
+checksum=8acdbcba19a4e4470b6a74ab5c0704dcf64b712e0ded0102e44060093835180e
+
+do_build() {
+	./gradlew --no-daemon dist -Pbuildversion="${version}"
+	cd core/assets/icons
+	/usr/bin/icns2png --extract icon.icns
+}
+
+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
+	local icon_size; for icon_size in 256 512 1024; do
+		vmkdir usr/share/icons/hicolor/${icon_size}x${icon_size}/apps
+    	vinstall "core/assets/icons/icon_${icon_size}x${icon_size}x32.png" 644 \
+    	  "usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/${pkgname}.png"
+	done
+}
+
+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
+	}
+}

             reply	other threads:[~2019-10-26 14:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-26 14:32 voidlinux-github [this message]
2019-10-26 14:38 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-26 14:38 ` voidlinux-github
2019-10-26 14:39 ` voidlinux-github
2019-10-26 14:39 ` voidlinux-github
2019-10-26 14:42 ` voidlinux-github
2019-10-26 14:42 ` voidlinux-github
2020-01-23 13:35 ` [PR PATCH] [Closed]: " voidlinux-github

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15809@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).