Browse Source

l/python-cryptography: Upgraded to python-cryptography-2.1.4.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
2cd79f265a
  1. 1
      l/python-cryptography/cryptography-1.4.tar.gz.sha1
  2. 1
      l/python-cryptography/cryptography-2.1.4.tar.gz.sha256
  3. 31
      l/python-cryptography/python-cryptography.SlackBuild

1
l/python-cryptography/cryptography-1.4.tar.gz.sha1

@ -1 +0,0 @@
f769cd5b007b3e1699eeefd6c4a9259ae97908b6 cryptography-1.4.tar.gz

1
l/python-cryptography/cryptography-2.1.4.tar.gz.sha256

@ -0,0 +1 @@
e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291 cryptography-2.1.4.tar.gz

31
l/python-cryptography/python-cryptography.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016 Damien Goutte-Gattat
# Copyright (C) 2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,14 +25,14 @@
# Latest cryptography sourcecode is available at:
# <https://github.com/pyca/cryptography>.
#
# Depends: l/python-enum34, l/python-cffi
# Optional: d/sphinx
# Depends: l/python-idna, l/python-asn1crypto, l/python-six
# Depends: l/python-cffi, l/python-enum34, l/python-ipaddress
# Source package infos
NAMESRC=${NAMESRC:-cryptography}
VERSION=${VERSION:-1.4}
VERSION=${VERSION:-2.1.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/a9/5b/a383b3a778609fe8177bd51307b5ebeee369b353550675353f46cb99c6f0/$ARCHIVE}
WGET=${WGET:-https://pypi.python.org/packages/78/c5/7188f15a92413096c93053d5304718e1f6ba88b818357d05d19250ebff85/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-cryptography}
@ -77,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -90,19 +90,28 @@ CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst \
LICENSE{,.APACHE,.BSD} PKG-INFO README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
if type -p sphinx-build ; then
make -C docs html
cp -r docs/_build/html $PKG/usr/doc/$NAMEPKG-$VERSION/html
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF >$PKG/install/slack-required
python-idna
python-asn1crypto
python-six
python-cffi
python-enum34
python-ipaddress
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save