Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: graphwar-1.0.0
Date: Sun, 12 Mar 2023 17:40:48 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42721@inbox.vuxu.org> (raw)

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

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

https://github.com/Eloitor/void-packages graphwar
https://github.com/void-linux/void-packages/pull/42721

New package: graphwar-1.0.0
#### Testing the changes
- I tested the changes in this PR: **YES**

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

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)

closes  #40437

#### How to test:

1.

``` bash
graphwar-globalServer 127.0.0.1 &
graphwar-roomServer 127.0.0.1 &
graphwar 127.0.0.1
```
2. Select `create room` and add a player name.
3.

``` bash
graphwar 127.0.0.1
```
4. Select `join game`, add a player name and `127.0.0.1` as the ip.


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

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

From 266b0faab5effb8f6b51a782fdd3ce613114031f Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sat, 11 Mar 2023 20:10:15 +0100
Subject: [PATCH] New package: graphwar-1.0.0

---
 srcpkgs/graphwar/files/graphwar              |  2 ++
 srcpkgs/graphwar/files/graphwar-globalServer |  2 ++
 srcpkgs/graphwar/files/graphwar-roomServer   |  2 ++
 srcpkgs/graphwar/template                    | 24 ++++++++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 srcpkgs/graphwar/files/graphwar
 create mode 100644 srcpkgs/graphwar/files/graphwar-globalServer
 create mode 100644 srcpkgs/graphwar/files/graphwar-roomServer
 create mode 100644 srcpkgs/graphwar/template

diff --git a/srcpkgs/graphwar/files/graphwar b/srcpkgs/graphwar/files/graphwar
new file mode 100644
index 000000000000..7cbd7e668554
--- /dev/null
+++ b/srcpkgs/graphwar/files/graphwar
@@ -0,0 +1,2 @@
+#! /bin/sh
+java -jar /usr/share/java/graphwar/graphwar.jar "$@"
diff --git a/srcpkgs/graphwar/files/graphwar-globalServer b/srcpkgs/graphwar/files/graphwar-globalServer
new file mode 100644
index 000000000000..ac962e012d71
--- /dev/null
+++ b/srcpkgs/graphwar/files/graphwar-globalServer
@@ -0,0 +1,2 @@
+#! /bin/sh
+java -jar /usr/share/java/graphwar/globalServer.jar "$@"
diff --git a/srcpkgs/graphwar/files/graphwar-roomServer b/srcpkgs/graphwar/files/graphwar-roomServer
new file mode 100644
index 000000000000..23d885fa24de
--- /dev/null
+++ b/srcpkgs/graphwar/files/graphwar-roomServer
@@ -0,0 +1,2 @@
+#! /bin/sh
+java -jar /usr/share/java/graphwar/roomServer.jar "$@"
diff --git a/srcpkgs/graphwar/template b/srcpkgs/graphwar/template
new file mode 100644
index 000000000000..1444f635bd46
--- /dev/null
+++ b/srcpkgs/graphwar/template
@@ -0,0 +1,24 @@
+# Template file for 'graphwar'
+pkgname=graphwar
+version=1.0.0
+revision=1
+build_style=gnu-makefile
+makedepends="openjdk11"
+depends="virtual?java-environment"
+short_desc="Hit your enemies using mathematical functions"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="http://www.graphwar.com/"
+distfiles="https://github.com/catabriga/graphwar/archive/refs/tags/${version}.tar.gz"
+checksum=53011a55adf3577d22dd2a190356d7fff7dc1379e4b8736dfd4933b47ab1e4e9
+
+do_install() {
+	vmkdir usr/share/java
+	vmkdir usr/share/java/${pkgname}
+	vinstall globalServer.jar 644 usr/share/java/${pkgname}
+	vinstall graphwar.jar 644 usr/share/java/${pkgname}
+	vinstall roomServer.jar 644 usr/share/java/${pkgname}
+	vbin "${FILESDIR}/${pkgname}"
+	vbin "${FILESDIR}/${pkgname}-globalServer"
+	vbin "${FILESDIR}/${pkgname}-roomServer"
+}

             reply	other threads:[~2023-03-12 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-12 16:40 Eloitor [this message]
2023-03-12 16:44 ` Eloitor
2023-03-12 19:44 ` [PR REVIEW] " classabbyamp
2023-03-12 19:55 ` [PR PATCH] [Updated] " Eloitor
2023-06-11  2:09 ` github-actions
2023-06-14  5:49 ` Eloitor
2023-06-27 11:43 ` [PR PATCH] [Merged]: " Duncaen

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-42721@inbox.vuxu.org \
    --to=eloitor@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).