Package Details: shattered-pixel-dungeon 0.7.2d-1

Git Clone URL: https://aur.archlinux.org/shattered-pixel-dungeon.git (read-only)
Package Base: shattered-pixel-dungeon
Description: Shattered fork of the popular rogue-like game
Upstream URL: http://shatteredpixel.tumblr.com
Licenses: GPL3
Conflicts: shattered-pixel-dungeon-git
Submitter: petercxy
Maintainer: petercxy (lilac)
Last Packager: petercxy
Votes: 2
Popularity: 0.054557
First Submitted: 2018-05-11 11:51
Last Updated: 2019-05-09 12:07

Required by (0)

Sources (3)

Latest Comments

petercxy commented on 2019-01-27 06:10

Updated with system gradle

jonathon commented on 2018-12-31 15:27

If you don't want to use the system gradle at least consider this patch which will use a cached archive and save ~110MB download every build:

diff --git a/PKGBUILD b/PKGBUILD
index 1dcef41..12498db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,10 +17,17 @@ source=(
   "https://github.com/00-Evan/shattered-pixel-dungeon-gdx/archive/v$pkgver.tar.gz"
   "$pkgname.sh"
   "$pkgname.desktop"
+  https://services.gradle.org/distributions/gradle-5.1.1-all.zip
 )
+noextract=(gradle-5.1.1-all.zip)
 sha512sums=('d596e982df7641b7cd610ebf45c057d7cc66fb79fe062d2fc49abc740031728ab29030ba74bc09602efc8fa3ca84aa5ec10cda48701312564dcd52bb8ed9d424'
             '88814d1f33eea6bd5656d3ca731ed5a6cfce10ecdae24012252c5b32c4b194ec75fb0e22cac70897802679086c6a32e210d52933ec45ca94ff350ac4ad7c266e'
-            '204a7bcedbbc14bdad6586e4b759b326191a7fd2c344dadc7032495d4caa5fe32edac4118d7294229a6fe24f6684416fff37e260bbc9dde9e50846a03ba77db8')
+            '204a7bcedbbc14bdad6586e4b759b326191a7fd2c344dadc7032495d4caa5fe32edac4118d7294229a6fe24f6684416fff37e260bbc9dde9e50846a03ba77db8'
+            '53b71812f18cdb2777e9f1b2a0f2038683907c90bdc406bc64d8b400e1fb2c3b')
+
+prepare() {
+  sed -i "5s|https\\\://services.gradle.org/distributions|file:///$srcdir|" $_srcdir/gradle/wrapper/gradle-wrapper.properties
+}

 build() {
   cd $_srcdir

jonathon commented on 2018-10-27 13:42

Here's a diff to use the system gradle and prevent the download of ~70MB for each build:

diff --git a/PKGBUILD b/PKGBUILD
index 6b8d7bc..d20c81f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgdesc='Shattered fork of the popular rogue-like game'
 url='http://shatteredpixel.tumblr.com'
 license=('GPL3')
 depends=('java-runtime' 'bash' 'xorg-xrandr')
-makedepends=('git' 'java-environment' 'jdk8-openjdk')
+makedepends=('git' 'gradle' 'java-environment' 'jdk8-openjdk')
 conflicts=('shattered-pixel-dungeon-git')
 arch=('any')
 source=(
@@ -22,6 +22,11 @@ sha512sums=('5ffcff27a982399239f935e1307e7620d2052b6fe6682d85e699fa29a9f09454209
             '88814d1f33eea6bd5656d3ca731ed5a6cfce10ecdae24012252c5b32c4b194ec75fb0e22cac70897802679086c6a32e210d52933ec45ca94ff350ac4ad7c266e'
             '204a7bcedbbc14bdad6586e4b759b326191a7fd2c344dadc7032495d4caa5fe32edac4118d7294229a6fe24f6684416fff37e260bbc9dde9e50846a03ba77db8')

+prepare() {
+  # Use system gradle
+  sed -i '164c/usr/bin/gradle "$@"' "$_srcdir"/gradlew
+}
+
 build() {
   cd $_srcdir
   unset _JAVA_OPTIONS