Date: Tuesday, April 4, 2023 @ 09:39:30
Author: grawlinson
Revision: 1434509
archrelease: copy trunk to community-any
Added:
shattered-pixel-dungeon/repos/community-any/
shattered-pixel-dungeon/repos/community-any/PKGBUILD
(from rev 1434508, shattered-pixel-dungeon/trunk/PKGBUILD)
shattered-pixel-dungeon/repos/community-any/shattered-pixel-dungeon.desktop
(from rev 1434508,
shattered-pixel-dungeon/trunk/shattered-pixel-dungeon.desktop)
shattered-pixel-dungeon/repos/community-any/shattered-pixel-dungeon.sh
(from rev 1434508, shattered-pixel-dungeon/trunk/shattered-pixel-dungeon.sh)
---------------------------------+
PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++
shattered-pixel-dungeon.desktop | 9 ++++++
shattered-pixel-dungeon.sh | 3 ++
3 files changed, 69 insertions(+)
Copied: shattered-pixel-dungeon/repos/community-any/PKGBUILD (from rev 1434508,
shattered-pixel-dungeon/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-04-04 09:39:30 UTC (rev 1434509)
@@ -0,0 +1,57 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Maintainer: Peter Cai <peter at typeblog dot net>
+# Thanks: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=shattered-pixel-dungeon
+pkgver=2.0.1
+pkgrel=1
+pkgdesc='A roguelike dungeon crawler with randomized levels and enemies, and
hundreds of items'
+arch=('any')
+url='https://shatteredpixel.com/shatteredpd/'
+license=('GPL3')
+depends=('bash' 'xorg-xrandr' 'java-runtime>=11' 'hicolor-icon-theme')
+makedepends=('git' 'jdk11-openjdk' 'gradle')
+_commit='22790c406e9308abb95ecf855118c0d01f8d41eb'
+source=(
+
"$pkgname::git+https://github.com/00-Evan/shattered-pixel-dungeon#commit=$_commit"
+ "$pkgname.sh"
+ "$pkgname.desktop"
+)
+b2sums=('SKIP'
+
'c0b0d7d7319159716f1e49620c3c9a0bea9dea149cb1b88da0294a343341075557fe86bd45965a23aa34054ee6c454dd9a0b73273e6cafaf75de3d3fa3ef0ab1'
+
'94e110340bddcdf64d74922e9ddf4c0f37e72466ea61edcde61f903680f57b10d81ff804b95f2467e4364a577f7c845d66137fedfc700d11638defe6a3359a93')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ # Force the system to build the package using JDK 11
+ export PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH"
+ export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
+
+ gradle desktop:release
+}
+
+package() {
+ cd "$pkgname"
+
+ # wrapper script
+ install -vDm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+
+ # jar file
+ install -vDm644 "desktop/build/libs/desktop-$pkgver.jar"
"$pkgdir/usr/share/$pkgname/$pkgname.jar"
+
+ # desktop file
+ install -vDm644 -t "$pkgdir/usr/share/applications"
"$srcdir/$pkgname.desktop"
+
+ # application icons
+ for i in 16 32 48 64 128 256; do
+ install -vDm644 "desktop/src/main/assets/icons/icon_${i}.png"
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
+ done
+ install -vDm644 android/src/main/res/mipmap-xxxhdpi/ic_launcher.png
"$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"
+}
Copied:
shattered-pixel-dungeon/repos/community-any/shattered-pixel-dungeon.desktop
(from rev 1434508,
shattered-pixel-dungeon/trunk/shattered-pixel-dungeon.desktop)
===================================================================
--- community-any/shattered-pixel-dungeon.desktop
(rev 0)
+++ community-any/shattered-pixel-dungeon.desktop 2023-04-04 09:39:30 UTC
(rev 1434509)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Shattered Pixel Dungeon
+Comment=A roguelike dungeon crawler
+Exec=shattered-pixel-dungeon
+Icon=shattered-pixel-dungeon
+Terminal=false
+Categories=Game;
Copied: shattered-pixel-dungeon/repos/community-any/shattered-pixel-dungeon.sh
(from rev 1434508, shattered-pixel-dungeon/trunk/shattered-pixel-dungeon.sh)
===================================================================
--- community-any/shattered-pixel-dungeon.sh (rev 0)
+++ community-any/shattered-pixel-dungeon.sh 2023-04-04 09:39:30 UTC (rev
1434509)
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+/usr/bin/java -jar
/usr/share/shattered-pixel-dungeon/shattered-pixel-dungeon.jar "$@"