summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wieczorek2016-05-12 22:11:32 +0200
committerMarcin Wieczorek2016-05-12 22:11:32 +0200
commit5110b880d97b95d0c09af66608677bbeef0c3489 (patch)
tree5cbf81dd95fce90b13dae2df45a54a5577332e3d
parent639a94aa0ecad4de9f15f97b6bf4772332621425 (diff)
downloadaur-5110b880d97b95d0c09af66608677bbeef0c3489.tar.gz
Export JAVA_HOME if not present. (package release 2)
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 856a8c085b4..2517bc6f3fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=rundeck
pkgver=2.6.7
-pkgrel=1
+pkgrel=2
pkgdesc="Open source automation service with a web console, command line tools and a WebAPI"
arch=('i686' 'x86_64')
url="http://messengerfordesktop.com/"
@@ -13,8 +13,13 @@ source=("https://github.com/rundeck/rundeck/archive/v${pkgver}.tar.gz"
md5sums=('bee9c70580aa85e92ecfeefec6e673fb'
'a8e31d4a8d91239bdc326118d6b20c02')
-build() {
+build() {
cd "${srcdir}/rundeck-${pkgver}"
+
+ if [[ -z "${JAVA_HOME// }" ]]; then
+ export JAVA_HOME="/usr/lib/jvm/default"
+ fi
+
sh ./gradlew build
}