Skip to content

Commit cbc518f

Browse files
committed
New package: shattered-pixel-dungeon-3.1.0
1 parent 35ab683 commit cbc518f

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Version=1.0
4+
Name=Shattered Pixel Dungeon
5+
Comment=Open-source roguelike dungeon crawler
6+
Exec=/usr/bin/shattered-pixel-dungeon
7+
Icon=shattered-pixel-dungeon
8+
Terminal=false
9+
Categories=Game;
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Template file for 'shattered-pixel-dungeon'
2+
pkgname=shattered-pixel-dungeon
3+
version=3.1.0
4+
revision=1
5+
hostmakedepends="openjdk17 gradle"
6+
depends="virtual?java-runtime desktop-file-utils hicolor-icon-theme"
7+
short_desc="Open-source roguelike dungeon crawler with randomized levels and enemies"
8+
maintainer="Mihail Ivanchev <contact@ivanchev.net>"
9+
license="GPL-3.0-only"
10+
homepage="https://github.com/00-Evan/shattered-pixel-dungeon"
11+
distfiles="https://github.com/00-Evan/shattered-pixel-dungeon/archive/v${version}.tar.gz"
12+
checksum=40c1516d57afc4ccb98553ee51950ba918cad87634203106474646c47c8ccc7f
13+
14+
do_build() {
15+
vsed -i settings.gradle -e 's|include.*:android.*|//&|'
16+
vsed -i settings.gradle -e 's|include.*:ios.*|//&|'
17+
18+
# The heap size is causing problems for the i686 CI build.
19+
case "${XBPS_TARGET_MACHINE}" in
20+
i686*) vsed -i gradle.properties -e 's|-Xmx2048m ||'
21+
;;
22+
esac
23+
24+
gradle --warning-mode all desktop:release
25+
}
26+
27+
do_install() {
28+
vmkdir usr/share/${pkgname}
29+
vcopy desktop/build/libs/desktop-$version.jar usr/share/${pkgname}
30+
31+
vmkdir usr/bin
32+
sed "s|@VERSION@|${version}|" "${FILESDIR}/${pkgname}" > "${DESTDIR}/usr/bin/${pkgname}"
33+
chmod 0755 "${DESTDIR}/usr/bin/${pkgname}"
34+
35+
vinstall "${FILESDIR}/${pkgname}.desktop" 0644 usr/share/applications
36+
37+
for icon in desktop/src/main/assets/icons/icon_*.png; do
38+
local size=${icon##*_}
39+
size=${size%.png}
40+
vinstall $icon 0644 usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png
41+
done
42+
}

0 commit comments

Comments
 (0)