summaryrefslogtreecommitdiffstats
path: root/development/kicad-symbols/kicad-symbols.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/kicad-symbols/kicad-symbols.SlackBuild')
-rw-r--r--development/kicad-symbols/kicad-symbols.SlackBuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/development/kicad-symbols/kicad-symbols.SlackBuild b/development/kicad-symbols/kicad-symbols.SlackBuild
index 2c497b732b..b0c7ecdcec 100644
--- a/development/kicad-symbols/kicad-symbols.SlackBuild
+++ b/development/kicad-symbols/kicad-symbols.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for kicad-symbols
# Additional symbols for KiCad
@@ -25,16 +25,24 @@
# Revision date: 2019-12-12
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=kicad-symbols
-VERSION=${VERSION:-5.1.5}
+VERSION=${VERSION:-7.0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH="noarch"
-KICAD_VERSION=${KICAD_VERSION:-5.1.5}
+# 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
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -70,4 +78,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} \ No newline at end of file
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE