aboutsummaryrefslogtreecommitdiff
path: root/development/jupyter-notebook/jupyter-notebook.SlackBuild
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-10-21 17:31:31 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-22 08:34:10 +0700
commitd6e7eb74e48b92358d1731fc06b2415d42775576 (patch)
tree3889420e43540ccbc284c45c3e591309b70d37db /development/jupyter-notebook/jupyter-notebook.SlackBuild
parentc73cda19a36b196a2e9c81707e1882a9fdda0df2 (diff)
development/jupyter-notebook: Update for 6.5.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jupyter-notebook/jupyter-notebook.SlackBuild')
-rw-r--r--development/jupyter-notebook/jupyter-notebook.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/development/jupyter-notebook/jupyter-notebook.SlackBuild b/development/jupyter-notebook/jupyter-notebook.SlackBuild
index 7defee02e5..df1b3492bb 100644
--- a/development/jupyter-notebook/jupyter-notebook.SlackBuild
+++ b/development/jupyter-notebook/jupyter-notebook.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jupyter-notebook
-VERSION=${VERSION:-6.4.12}
+VERSION=${VERSION:-6.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,19 +82,22 @@ 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 {} \;
+# Patch for compatibility with nbclassic 0.4.6
+# Credit to Eric Charles: https://github.com/jupyter/notebook/commit/ab716106.patch
+patch -p1 < $CWD/nbclassic-0.4.6.patch
+
python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CHANGELOG.md CONTRIBUTING.rst LICENSE PKG-INFO README.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.md CONTRIBUTING.rst LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
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