Browse Source

l/zope.interface: Upgraded to zope.interface-5.1.0.

slackware-15.0
parent
commit
d95d55f927
  1. 1
      l/zope.interface/zope.interface-4.7.1.tar.gz.sha256
  2. 1
      l/zope.interface/zope.interface-5.1.0.tar.gz.sha256
  3. 15
      l/zope.interface/zope.interface.SlackBuild

1
l/zope.interface/zope.interface-4.7.1.tar.gz.sha256

@ -1 +0,0 @@
4bb937e998be9d5e345f486693e477ba79e4344674484001a0b646be1d530487 zope.interface-4.7.1.tar.gz

1
l/zope.interface/zope.interface-5.1.0.tar.gz.sha256

@ -0,0 +1 @@
40e4c42bd27ed3c11b2c983fecfb03356fae1209de10686d03c02c8696a1d90e zope.interface-5.1.0.tar.gz

15
l/zope.interface/zope.interface.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2015,2018,2019 Damien Goutte-Gattat
# Copyright (C) 2015,2018,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-zope.interface}
VERSION=${VERSION:-4.7.1}
VERSION=${VERSION:-5.1.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/c3/05/bf3130eb799548882ce61b7c3d2dbc5d4d5cc6e821efa8786c5273d56844/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-zope.interface}
@ -58,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)
@ -69,8 +67,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
@ -83,6 +79,11 @@ mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES.rst COPYRIGHT.txt LICENSE.txt PKG-INFO \
README.rst $PKG/usr/doc/$NAME
# Build HTML docs if possible
if sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save