Browse Source

l/python-restructuredtext-lint: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
9db7760b78
  1. 12
      l/python-restructuredtext-lint/python-restructuredtext-lint.SlackBuild

12
l/python-restructuredtext-lint/python-restructuredtext-lint.SlackBuild

@ -24,14 +24,11 @@
#
# Latest restructuredtext_lint sourcecode is available at:
# <https://github.com/twolfson/restructuredtext-lint>.
#
# Depends: d/docutils
# Source package infos
NAMESRC=${NAMESRC:-restructuredtext_lint}
VERSION=${VERSION:-1.3.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/62/76/bd8760de759fb74d7863e6935200af101cb128a7de008741a4e22341d03c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-restructuredtext-lint}
@ -60,8 +57,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 +67,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

Loading…
Cancel
Save