summaryrefslogtreecommitdiffstats
path: root/academic/qalculate-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'academic/qalculate-gtk')
-rw-r--r--academic/qalculate-gtk/qalculate-gtk.SlackBuild20
-rw-r--r--academic/qalculate-gtk/qalculate-gtk.info10
2 files changed, 20 insertions, 10 deletions
diff --git a/academic/qalculate-gtk/qalculate-gtk.SlackBuild b/academic/qalculate-gtk/qalculate-gtk.SlackBuild
index 569baa8084..d7eee6b209 100644
--- a/academic/qalculate-gtk/qalculate-gtk.SlackBuild
+++ b/academic/qalculate-gtk/qalculate-gtk.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for qalculate-gtk
-# Copyright 2016-2019 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2016-2020 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=qalculate-gtk
-VERSION=${VERSION:-3.4.0}
+VERSION=${VERSION:-3.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-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}
@@ -95,4 +105,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/academic/qalculate-gtk/qalculate-gtk.info b/academic/qalculate-gtk/qalculate-gtk.info
index e3b8170127..86c67f3cd1 100644
--- a/academic/qalculate-gtk/qalculate-gtk.info
+++ b/academic/qalculate-gtk/qalculate-gtk.info
@@ -1,10 +1,10 @@
PRGNAM="qalculate-gtk"
-VERSION="3.4.0"
-HOMEPAGE="http://qalculate.github.io/"
-DOWNLOAD="https://github.com/Qalculate/qalculate-gtk/releases/download/v3.4.0/qalculate-gtk-3.4.0.tar.gz"
-MD5SUM="58a8670ce4f3e692acbd2f27d104f82e"
+VERSION="3.10.0"
+HOMEPAGE="https://qalculate.github.io/"
+DOWNLOAD="https://github.com/Qalculate/qalculate-gtk/releases/download/v3.10.0/qalculate-gtk-3.10.0.tar.gz"
+MD5SUM="5880b40c4a5beb9da290b28a54eb4f46"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libqalculate"
+REQUIRES=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"