Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: shattered-pixel-dungeon-2.4.2
@ 2024-07-21 16:28 MIvanchev
  2024-07-21 17:45 ` [PR PATCH] [Updated] " MIvanchev
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: MIvanchev @ 2024-07-21 16:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages ci-pixel
https://github.com/void-linux/void-packages/pull/51361

New package: shattered-pixel-dungeon-2.4.2
#### 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-GLIBC)


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

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

From 7111832f0cb355eca3e98668d1f704c1c49ba54f Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Sun, 21 Jul 2024 16:49:06 +0200
Subject: [PATCH] New package: shattered-pixel-dungeon-2.4.2

---
 .../files/shattered-pixel-dungeon             |  2 +
 .../files/shattered-pixel-dungeon.desktop     |  9 ++++
 srcpkgs/shattered-pixel-dungeon/template      | 42 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
 create mode 100644 srcpkgs/shattered-pixel-dungeon/template

diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
new file mode 100644
index 00000000000000..c3cb4ad504d14a
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
new file mode 100644
index 00000000000000..3cf57656bc02fa
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Shattered Pixel Dungeon
+Comment=Open-source roguelike dungeon crawler
+Exec=/usr/bin/shattered-pixel-dungeon
+Icon=shattered-pixel-dungeon
+Terminal=false
+Categories=Game;
diff --git a/srcpkgs/shattered-pixel-dungeon/template b/srcpkgs/shattered-pixel-dungeon/template
new file mode 100644
index 00000000000000..c74249efe182b6
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/template
@@ -0,0 +1,42 @@
+# Template file for 'shattered-pixel-dungeon'
+pkgname=shattered-pixel-dungeon
+version=2.4.2
+revision=1
+hostmakedepends="openjdk11 gradle"
+depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
+short_desc="Open-source roguelike dungeon crawler with randomized levels and enemies"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-only"
+homepage="https://github.com/00-Evan/shattered-pixel-dungeon"
+distfiles="https://github.com/00-Evan/shattered-pixel-dungeon/archive/v${version}.tar.gz"
+checksum=7ea6680d8a6d2665b4cc546f00d9e162574ffff0ca094f5eb3591ee60cbbd50b
+
+do_build() {
+	vsed -i settings.gradle -e 's|include.*:android.*|//&|'
+	vsed -i settings.gradle -e 's|include.*:ios.*|//&|'
+
+	# The heap size is causing problems for the i686 CI build.
+	case "${XBPS_TARGET_MACHINE}" in
+	i686*) vsed -i gradle.properties -e 's|-Xmx2048m ||'
+	       ;;
+	esac
+
+	gradle desktop:release
+}
+
+do_install() {
+	vmkdir usr/share/${pkgname}
+	vcopy desktop/build/libs/desktop-$version.jar usr/share/${pkgname}
+
+	vmkdir usr/bin
+	sed "s|@VERSION@|${version}|" "${FILESDIR}/${pkgname}" > "${DESTDIR}/usr/bin/${pkgname}"
+	chmod 0755 "${DESTDIR}/usr/bin/${pkgname}"
+
+	vinstall "${FILESDIR}/${pkgname}.desktop" 0644 usr/share/applications
+
+	for icon in desktop/src/main/assets/icons/icon_*.png; do
+		local size=${icon##*_}
+		size=${size%.png}
+		vinstall $icon 0644 usr/share/icons/${size}x${size} ${pkgname}.png
+	done
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] New package: shattered-pixel-dungeon-2.4.2
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
@ 2024-07-21 17:45 ` MIvanchev
  2024-10-20  2:04 ` github-actions
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MIvanchev @ 2024-07-21 17:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages ci-pixel
https://github.com/void-linux/void-packages/pull/51361

New package: shattered-pixel-dungeon-2.4.2
#### 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-GLIBC)


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

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

From 41cb6d64fa5931720e5d8f652759ec9555a1dc93 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Sun, 21 Jul 2024 16:49:06 +0200
Subject: [PATCH] New package: shattered-pixel-dungeon-2.4.2

---
 .../files/shattered-pixel-dungeon             |  2 +
 .../files/shattered-pixel-dungeon.desktop     |  9 ++++
 srcpkgs/shattered-pixel-dungeon/template      | 42 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
 create mode 100644 srcpkgs/shattered-pixel-dungeon/template

diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
new file mode 100644
index 00000000000000..c3cb4ad504d14a
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
new file mode 100644
index 00000000000000..3cf57656bc02fa
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Shattered Pixel Dungeon
+Comment=Open-source roguelike dungeon crawler
+Exec=/usr/bin/shattered-pixel-dungeon
+Icon=shattered-pixel-dungeon
+Terminal=false
+Categories=Game;
diff --git a/srcpkgs/shattered-pixel-dungeon/template b/srcpkgs/shattered-pixel-dungeon/template
new file mode 100644
index 00000000000000..de18606452e92b
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/template
@@ -0,0 +1,42 @@
+# Template file for 'shattered-pixel-dungeon'
+pkgname=shattered-pixel-dungeon
+version=2.4.2
+revision=1
+hostmakedepends="openjdk11 gradle"
+depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
+short_desc="Open-source roguelike dungeon crawler with randomized levels and enemies"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-only"
+homepage="https://github.com/00-Evan/shattered-pixel-dungeon"
+distfiles="https://github.com/00-Evan/shattered-pixel-dungeon/archive/v${version}.tar.gz"
+checksum=7ea6680d8a6d2665b4cc546f00d9e162574ffff0ca094f5eb3591ee60cbbd50b
+
+do_build() {
+	vsed -i settings.gradle -e 's|include.*:android.*|//&|'
+	vsed -i settings.gradle -e 's|include.*:ios.*|//&|'
+
+	# The heap size is causing problems for the i686 CI build.
+	case "${XBPS_TARGET_MACHINE}" in
+	i686*) vsed -i gradle.properties -e 's|-Xmx2048m ||'
+	       ;;
+	esac
+
+	gradle desktop:release
+}
+
+do_install() {
+	vmkdir usr/share/${pkgname}
+	vcopy desktop/build/libs/desktop-$version.jar usr/share/${pkgname}
+
+	vmkdir usr/bin
+	sed "s|@VERSION@|${version}|" "${FILESDIR}/${pkgname}" > "${DESTDIR}/usr/bin/${pkgname}"
+	chmod 0755 "${DESTDIR}/usr/bin/${pkgname}"
+
+	vinstall "${FILESDIR}/${pkgname}.desktop" 0644 usr/share/applications
+
+	for icon in desktop/src/main/assets/icons/icon_*.png; do
+		local size=${icon##*_}
+		size=${size%.png}
+		vinstall $icon 0644 usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
+	done
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: shattered-pixel-dungeon-2.4.2
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
  2024-07-21 17:45 ` [PR PATCH] [Updated] " MIvanchev
@ 2024-10-20  2:04 ` github-actions
  2024-10-20  7:45 ` MIvanchev
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2024-10-20  2:04 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/51361#issuecomment-2424405718

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: shattered-pixel-dungeon-2.4.2
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
  2024-07-21 17:45 ` [PR PATCH] [Updated] " MIvanchev
  2024-10-20  2:04 ` github-actions
@ 2024-10-20  7:45 ` MIvanchev
  2024-12-23 10:31 ` [PR PATCH] [Updated] " MIvanchev
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MIvanchev @ 2024-10-20  7:45 UTC (permalink / raw)
  To: ml

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

New comment by MIvanchev on void-packages repository

https://github.com/void-linux/void-packages/pull/51361#issuecomment-2424703195

Comment:
Bump.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] New package: shattered-pixel-dungeon-2.4.2
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
                   ` (2 preceding siblings ...)
  2024-10-20  7:45 ` MIvanchev
@ 2024-12-23 10:31 ` MIvanchev
  2025-03-24  2:07 ` New package: shattered-pixel-dungeon-2.5.4 github-actions
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: MIvanchev @ 2024-12-23 10:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages ci-pixel
https://github.com/void-linux/void-packages/pull/51361

New package: shattered-pixel-dungeon-2.4.2
#### 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-GLIBC)


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

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

From 92d80c3613ce613775299ef385fc342fd030cb5c Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Sun, 21 Jul 2024 16:49:06 +0200
Subject: [PATCH] New package: shattered-pixel-dungeon-2.5.4

---
 .../files/shattered-pixel-dungeon             |  2 +
 .../files/shattered-pixel-dungeon.desktop     |  9 ++++
 srcpkgs/shattered-pixel-dungeon/template      | 42 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
 create mode 100644 srcpkgs/shattered-pixel-dungeon/template

diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
new file mode 100644
index 00000000000000..c3cb4ad504d14a
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
new file mode 100644
index 00000000000000..3cf57656bc02fa
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Shattered Pixel Dungeon
+Comment=Open-source roguelike dungeon crawler
+Exec=/usr/bin/shattered-pixel-dungeon
+Icon=shattered-pixel-dungeon
+Terminal=false
+Categories=Game;
diff --git a/srcpkgs/shattered-pixel-dungeon/template b/srcpkgs/shattered-pixel-dungeon/template
new file mode 100644
index 00000000000000..5c33a24ff4f99a
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/template
@@ -0,0 +1,42 @@
+# Template file for 'shattered-pixel-dungeon'
+pkgname=shattered-pixel-dungeon
+version=2.5.4
+revision=1
+hostmakedepends="openjdk11 gradle"
+depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
+short_desc="Open-source roguelike dungeon crawler with randomized levels and enemies"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-only"
+homepage="https://github.com/00-Evan/shattered-pixel-dungeon"
+distfiles="https://github.com/00-Evan/shattered-pixel-dungeon/archive/v${version}.tar.gz"
+checksum=0d82daac0d9def8871ce4a475a6279cc4f7b17483a34fcf78451bf3cedd90eee
+
+do_build() {
+	vsed -i settings.gradle -e 's|include.*:android.*|//&|'
+	vsed -i settings.gradle -e 's|include.*:ios.*|//&|'
+
+	# The heap size is causing problems for the i686 CI build.
+	case "${XBPS_TARGET_MACHINE}" in
+	i686*) vsed -i gradle.properties -e 's|-Xmx2048m ||'
+	       ;;
+	esac
+
+	gradle --warning-mode all desktop:release
+}
+
+do_install() {
+	vmkdir usr/share/${pkgname}
+	vcopy desktop/build/libs/desktop-$version.jar usr/share/${pkgname}
+
+	vmkdir usr/bin
+	sed "s|@VERSION@|${version}|" "${FILESDIR}/${pkgname}" > "${DESTDIR}/usr/bin/${pkgname}"
+	chmod 0755 "${DESTDIR}/usr/bin/${pkgname}"
+
+	vinstall "${FILESDIR}/${pkgname}.desktop" 0644 usr/share/applications
+
+	for icon in desktop/src/main/assets/icons/icon_*.png; do
+		local size=${icon##*_}
+		size=${size%.png}
+		vinstall $icon 0644 usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
+	done
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: shattered-pixel-dungeon-2.5.4
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
                   ` (3 preceding siblings ...)
  2024-12-23 10:31 ` [PR PATCH] [Updated] " MIvanchev
@ 2025-03-24  2:07 ` github-actions
  2025-03-25 21:34 ` MIvanchev
  2025-04-02 12:50 ` [PR PATCH] [Updated] New package: shattered-pixel-dungeon-3.0.2 MIvanchev
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2025-03-24  2:07 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/51361#issuecomment-2746690778

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: shattered-pixel-dungeon-2.5.4
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
                   ` (4 preceding siblings ...)
  2025-03-24  2:07 ` New package: shattered-pixel-dungeon-2.5.4 github-actions
@ 2025-03-25 21:34 ` MIvanchev
  2025-04-02 12:50 ` [PR PATCH] [Updated] New package: shattered-pixel-dungeon-3.0.2 MIvanchev
  6 siblings, 0 replies; 8+ messages in thread
From: MIvanchev @ 2025-03-25 21:34 UTC (permalink / raw)
  To: ml

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

New comment by MIvanchev on void-packages repository

https://github.com/void-linux/void-packages/pull/51361#issuecomment-2752603009

Comment:
Bump.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] New package: shattered-pixel-dungeon-3.0.2
  2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
                   ` (5 preceding siblings ...)
  2025-03-25 21:34 ` MIvanchev
@ 2025-04-02 12:50 ` MIvanchev
  6 siblings, 0 replies; 8+ messages in thread
From: MIvanchev @ 2025-04-02 12:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/MIvanchev/void-packages ci-pixel
https://github.com/void-linux/void-packages/pull/51361

New package: shattered-pixel-dungeon-3.0.2
#### 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-GLIBC)


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

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

From b02354ab113fd21c1b79adbfee03c22d73a2de7a Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Sun, 21 Jul 2024 16:49:06 +0200
Subject: [PATCH] New package: shattered-pixel-dungeon-3.0.2

---
 .../files/shattered-pixel-dungeon             |  2 +
 .../files/shattered-pixel-dungeon.desktop     |  9 ++++
 srcpkgs/shattered-pixel-dungeon/template      | 42 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
 create mode 100644 srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
 create mode 100644 srcpkgs/shattered-pixel-dungeon/template

diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
new file mode 100644
index 00000000000000..c3cb4ad504d14a
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
diff --git a/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
new file mode 100644
index 00000000000000..3cf57656bc02fa
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/files/shattered-pixel-dungeon.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Shattered Pixel Dungeon
+Comment=Open-source roguelike dungeon crawler
+Exec=/usr/bin/shattered-pixel-dungeon
+Icon=shattered-pixel-dungeon
+Terminal=false
+Categories=Game;
diff --git a/srcpkgs/shattered-pixel-dungeon/template b/srcpkgs/shattered-pixel-dungeon/template
new file mode 100644
index 00000000000000..bd1d969e58d40d
--- /dev/null
+++ b/srcpkgs/shattered-pixel-dungeon/template
@@ -0,0 +1,42 @@
+# Template file for 'shattered-pixel-dungeon'
+pkgname=shattered-pixel-dungeon
+version=3.0.2
+revision=1
+hostmakedepends="openjdk11 gradle"
+depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
+short_desc="Open-source roguelike dungeon crawler with randomized levels and enemies"
+maintainer="Mihail Ivanchev <contact@ivanchev.net>"
+license="GPL-3.0-only"
+homepage="https://github.com/00-Evan/shattered-pixel-dungeon"
+distfiles="https://github.com/00-Evan/shattered-pixel-dungeon/archive/v${version}.tar.gz"
+checksum=6e40d02da0f8350246de9b7cab3991f023e4a48c2bda314667901acf1948c685
+
+do_build() {
+	vsed -i settings.gradle -e 's|include.*:android.*|//&|'
+	vsed -i settings.gradle -e 's|include.*:ios.*|//&|'
+
+	# The heap size is causing problems for the i686 CI build.
+	case "${XBPS_TARGET_MACHINE}" in
+	i686*) vsed -i gradle.properties -e 's|-Xmx2048m ||'
+	       ;;
+	esac
+
+	gradle --warning-mode all desktop:release
+}
+
+do_install() {
+	vmkdir usr/share/${pkgname}
+	vcopy desktop/build/libs/desktop-$version.jar usr/share/${pkgname}
+
+	vmkdir usr/bin
+	sed "s|@VERSION@|${version}|" "${FILESDIR}/${pkgname}" > "${DESTDIR}/usr/bin/${pkgname}"
+	chmod 0755 "${DESTDIR}/usr/bin/${pkgname}"
+
+	vinstall "${FILESDIR}/${pkgname}.desktop" 0644 usr/share/applications
+
+	for icon in desktop/src/main/assets/icons/icon_*.png; do
+		local size=${icon##*_}
+		size=${size%.png}
+		vinstall $icon 0644 usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
+	done
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-02 12:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-21 16:28 [PR PATCH] New package: shattered-pixel-dungeon-2.4.2 MIvanchev
2024-07-21 17:45 ` [PR PATCH] [Updated] " MIvanchev
2024-10-20  2:04 ` github-actions
2024-10-20  7:45 ` MIvanchev
2024-12-23 10:31 ` [PR PATCH] [Updated] " MIvanchev
2025-03-24  2:07 ` New package: shattered-pixel-dungeon-2.5.4 github-actions
2025-03-25 21:34 ` MIvanchev
2025-04-02 12:50 ` [PR PATCH] [Updated] New package: shattered-pixel-dungeon-3.0.2 MIvanchev

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).