|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2018 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2018,2019 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -28,9 +28,8 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-jupyter_core}
|
|
|
|
|
VERSION=${VERSION:-4.4.0}
|
|
|
|
|
VERSION=${VERSION:-4.6.1}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
|
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/b6/2d/2804f4de3a95583f65e5dcb4d7c8c7183124882323758996e867f47e72af/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-jupyter-core}
|
|
|
|
@ -59,8 +58,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Get and verify the source archive
|
|
|
|
|
if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
|
|
|
|
|
fi
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
@ -70,12 +68,14 @@ cd $TMP
|
|
|
|
|
echo "Building $ARCHIVE..."
|
|
|
|
|
tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME
|
|
|
|
|
python setup.py build
|
|
|
|
|
python setup.py install --root=$PKG
|
|
|
|
|
python2 setup.py build
|
|
|
|
|
python2 setup.py install --root=$PKG
|
|
|
|
|
python3 setup.py build
|
|
|
|
|
python3 setup.py install --root=$PKG
|
|
|
|
|
|
|
|
|
|
# Install the documentation
|
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
install -m 644 COPYING.md README.md $PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
install -m 644 CONTRIBUTING.md COPYING.md README.md $PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
|
|
|
|
|
# Copy slack-desc file
|
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|