summaryrefslogtreecommitdiffstats
path: root/development/jupyter-nbdime
diff options
context:
space:
mode:
Diffstat (limited to 'development/jupyter-nbdime')
-rw-r--r--development/jupyter-nbdime/jupyter-nbdime.SlackBuild16
-rw-r--r--development/jupyter-nbdime/jupyter-nbdime.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/development/jupyter-nbdime/jupyter-nbdime.SlackBuild b/development/jupyter-nbdime/jupyter-nbdime.SlackBuild
index 32a62fa977..fdbc3a973a 100644
--- a/development/jupyter-nbdime/jupyter-nbdime.SlackBuild
+++ b/development/jupyter-nbdime/jupyter-nbdime.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for jupyter-nbdime
@@ -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=jupyter-nbdime
VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=nbdime
@@ -37,7 +40,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}
@@ -86,4 +96,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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/jupyter-nbdime/jupyter-nbdime.info b/development/jupyter-nbdime/jupyter-nbdime.info
index 0c484aca11..e74ba47a2d 100644
--- a/development/jupyter-nbdime/jupyter-nbdime.info
+++ b/development/jupyter-nbdime/jupyter-nbdime.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/source/n/nbdime/nbdime-2.1.0.t
MD5SUM="780c6d17abe4048dea1774a378fa2db7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="colorama GitPython jupyter-notebook python-requests python3-gitdb2"
+REQUIRES="colorama GitPython jupyter-notebook python3-gitdb2"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"