mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
New package: shattered-pixel-dungeon-3.1.0
This commit is contained in:
parent
3e508d2ca0
commit
10d676590d
3 changed files with 53 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
java -jar /usr/share/shattered-pixel-dungeon/desktop-@VERSION@.jar $@
|
|
@ -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;
|
42
srcpkgs/shattered-pixel-dungeon/template
Normal file
42
srcpkgs/shattered-pixel-dungeon/template
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Template file for 'shattered-pixel-dungeon'
|
||||
pkgname=shattered-pixel-dungeon
|
||||
version=3.1.0
|
||||
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=40c1516d57afc4ccb98553ee51950ba918cad87634203106474646c47c8ccc7f
|
||||
|
||||
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 --no-daemon --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
|
||||
}
|
Loading…
Add table
Reference in a new issue