summaryrefslogtreecommitdiffstats
path: root/system/saleae-logic/saleae-logic.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/saleae-logic/saleae-logic.SlackBuild')
-rw-r--r--system/saleae-logic/saleae-logic.SlackBuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/system/saleae-logic/saleae-logic.SlackBuild b/system/saleae-logic/saleae-logic.SlackBuild
index ceca9f5622..f60420688e 100644
--- a/system/saleae-logic/saleae-logic.SlackBuild
+++ b/system/saleae-logic/saleae-logic.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for saleae logic analyzer
@@ -22,15 +22,25 @@
# 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=saleae-logic
VERSION=${VERSION:-1.2.18}
SRCNAME="Logic 1.2.18 (64-bit)"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=x86_64
-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}
@@ -113,6 +123,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
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