summaryrefslogtreecommitdiffstats
path: root/system/jdiskreport
diff options
context:
space:
mode:
Diffstat (limited to 'system/jdiskreport')
-rw-r--r--system/jdiskreport/README10
-rw-r--r--system/jdiskreport/jdiskreport.SlackBuild16
-rw-r--r--system/jdiskreport/jdiskreport.info2
3 files changed, 19 insertions, 9 deletions
diff --git a/system/jdiskreport/README b/system/jdiskreport/README
index 7614efd683..d3962f92b5 100644
--- a/system/jdiskreport/README
+++ b/system/jdiskreport/README
@@ -1,6 +1,6 @@
-JDiskReport enables you to understand how much space the files and directories
-consume on your disk drives, and it helps you find obsolete files and folders.
-
-The tool analyses your disk drives and collects several statistics which you
-can view as overview charts and details tables.
+JDiskReport enables you to understand how much space the files
+and directories consume on your disk drives, and it helps you find
+obsolete files and folders.
+The tool analyses your disk drives and collects several statistics
+which you can view as overview charts and details tables.
diff --git a/system/jdiskreport/jdiskreport.SlackBuild b/system/jdiskreport/jdiskreport.SlackBuild
index 0acca36210..9a030e29e6 100644
--- a/system/jdiskreport/jdiskreport.SlackBuild
+++ b/system/jdiskreport/jdiskreport.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for jdiskreport
@@ -31,14 +31,24 @@
# 20121211 - Corrected "$@" to "\$@" in the /usr/bin script creation
# 20140423 - Updated for version 1.4.1
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=jdiskreport
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -86,4 +96,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/jdiskreport/jdiskreport.info b/system/jdiskreport/jdiskreport.info
index 202c8dea63..074b8badbf 100644
--- a/system/jdiskreport/jdiskreport.info
+++ b/system/jdiskreport/jdiskreport.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://www.jgoodies.com/download/jdiskreport/jdiskreport-1_4_1.zip"
MD5SUM="9380a6ba68bd21e0f09b58297eb5a44a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="jdk"
+REQUIRES="zulu-openjdk8"
MAINTAINER="Alan Alberghini"
EMAIL="414N@slacky.it"