summaryrefslogtreecommitdiffstats
path: root/academic/Gridcoin-Research/Gridcoin-Research.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/Gridcoin-Research/Gridcoin-Research.SlackBuild')
-rw-r--r--academic/Gridcoin-Research/Gridcoin-Research.SlackBuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/academic/Gridcoin-Research/Gridcoin-Research.SlackBuild b/academic/Gridcoin-Research/Gridcoin-Research.SlackBuild
index b1a80a48e4..9a04eb6fc4 100644
--- a/academic/Gridcoin-Research/Gridcoin-Research.SlackBuild
+++ b/academic/Gridcoin-Research/Gridcoin-Research.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Gridcoin-Research
-# Copyright 2018-2019 Edward W. Koenig, Vancouver, WA, USA
+# Copyright 2018-2021 Edward W. Koenig, Vancouver, WA, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +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=Gridcoin-Research
-VERSION=${VERSION:-5.1.0.0}
+VERSION=${VERSION:-5.4.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-NUMJOBS=${NUMJOBS:-1}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,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}
@@ -70,7 +79,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-if [ "${QRENC:-no}" = "yes" ]; then
+if [ "${QRENC:-yes}" = "yes" ]; then
useqr="--with-qrencode"
else
useqr="--without-qrencode"
@@ -98,7 +107,7 @@ CXXFLAGS="$SLKCFLAGS" \
$usepnp \
--build=$ARCH-slackware-linux
-make -j${NUMJOBS}
+make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -133,4 +142,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