File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
srcpkgs/shattered-pixel-dungeon Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
Original file line number Diff line number Diff line change 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;
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments