summaryrefslogtreecommitdiffstats
path: root/ham/CubicSDR/CubicSDR.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/CubicSDR/CubicSDR.SlackBuild')
-rw-r--r--ham/CubicSDR/CubicSDR.SlackBuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/ham/CubicSDR/CubicSDR.SlackBuild b/ham/CubicSDR/CubicSDR.SlackBuild
index fac6a9ad18..9370235c5c 100644
--- a/ham/CubicSDR/CubicSDR.SlackBuild
+++ b/ham/CubicSDR/CubicSDR.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for CubicSDR
-# Copyright 2017 Alan Aversa USA
+# Copyright 2022 Alan Aversa USA
# 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=CubicSDR
-VERSION=${VERSION:-0.2.2}
+VERSION=${VERSION:-0.2.7}
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}
@@ -68,7 +78,7 @@ cd $PRGNAM-$VERSION
STATICWXWIDGETS_DESTDIR=$TMP/$PRGNAM-$VERSION/wxWidgets-staticlib
mkdir -p $STATICWXWIDGETS_DESTDIR
-VERWXWIDGETS=${VERWXWIDGETS:-3.1.0}
+VERWXWIDGETS=${VERWXWIDGETS:-3.1.5}
tar xvf $CWD/wxWidgets-$VERWXWIDGETS.tar.bz2
cd wxWidgets-$VERWXWIDGETS
@@ -95,7 +105,6 @@ cd wxWidgets-$VERWXWIDGETS
--enable-unicode \
--enable-display \
--enable-propgrid \
- --disable-webkit \
--disable-webview \
--disable-webviewwebkit \
--prefix="$STATICWXWIDGETS_DESTDIR"
@@ -143,4 +152,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