Browse Source

l/python-prompt-toolkit: Upgraded to python-prompt-toolkit-2.0.10.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
e04aec245c
  1. 1
      l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256
  2. 1
      l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256
  3. 17
      l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild

1
l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256

@ -1 +0,0 @@
858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917 prompt_toolkit-1.0.15.tar.gz

1
l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256

@ -0,0 +1 @@
f15af68f66e664eaa559d4ac8a928111eebd5feda0c11738b5998045224829db prompt_toolkit-2.0.10.tar.gz

17
l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild

@ -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:
@ -25,13 +25,12 @@
# Latest prompt_toolkit sourcecode is available at:
# <https://github.com/jonathanslenders/python-prompt-toolkit>.
#
# Depends: l/python-six, l/python-wcwidth
# Depends: l/python-wcwidth
# Source package infos
NAMESRC=${NAMESRC:-prompt_toolkit}
VERSION=${VERSION:-1.0.15}
VERSION=${VERSION:-2.0.10}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/8a/ad/cf6b128866e78ad6d7f1dc5b7f99885fb813393d9860778b2984582e81b5/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-prompt-toolkit}
@ -60,8 +59,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)
@ -71,8 +69,10 @@ 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
@ -84,7 +84,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
python-six
python-wcwidth
EOF

Loading…
Cancel
Save