Browse Source

l/pycryptodome: Upgraded to pycryptodome-3.9.3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
5da090b019
  1. 1
      l/pycryptodome/pycryptodome-3.4.7.tar.gz.sha256
  2. 1
      l/pycryptodome/pycryptodome-3.9.3.tar.gz.sha256
  3. 24
      l/pycryptodome/pycryptodome.SlackBuild

1
l/pycryptodome/pycryptodome-3.4.7.tar.gz.sha256

@ -1 +0,0 @@
18d8dfe31bf0cb53d58694903e526be68f3cf48e6e3c6dfbbc1e7042b1693af7 pycryptodome-3.4.7.tar.gz

1
l/pycryptodome/pycryptodome-3.9.3.tar.gz.sha256

@ -0,0 +1 @@
39ddc3c493125494572e0beefa8e8e6a43369e93c3c3e163cb871b37c1c62fba pycryptodome-3.9.3.tar.gz

24
l/pycryptodome/pycryptodome.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
# Copyright (C) 2017,2019 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:-pycryptodome}
VERSION=${VERSION:-3.4.7}
VERSION=${VERSION:-3.9.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/2b/9b/aaa940ab8affd66eed043d69332dc607cddd68f9e399d93dcdfc8149fb21/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pycryptodome}
@ -73,8 +72,7 @@ esac
# 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)
@ -86,8 +84,12 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
@ -96,7 +98,13 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS.rst Changelog.rst FuturePlans.rst LICENSE.rst \
PKG-INFO README.rst $PKG/usr/doc/$NAME
README.rst $PKG/usr/doc/$NAME
# Build HTML docs if Sphinx and the readthedocs.org theme are available
if type -p sphinx-build && python -c "import sphinx_rtd_theme" ; then
sphinx-build -b html Doc $PKG/usr/doc/$NAME/html
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