Browse Source

l/pyopenssl: Upgraded to pyopenssl-17.5.0.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
e95618fef9
  1. 1
      l/pyopenssl/pyOpenSSL-16.0.0.tar.gz.sha1
  2. 1
      l/pyopenssl/pyOpenSSL-17.5.0.tar.gz.sha256
  3. 29
      l/pyopenssl/pyopenssl.SlackBuild

1
l/pyopenssl/pyOpenSSL-16.0.0.tar.gz.sha1

@ -1 +0,0 @@
4efb8f880743acf48070d3adaf9f0bce5601e6a8 pyOpenSSL-16.0.0.tar.gz

1
l/pyopenssl/pyOpenSSL-17.5.0.tar.gz.sha256

@ -0,0 +1 @@
2c10cfba46a52c0b0950118981d61e72c1e5b1aac451ca1bc77de1a679456773 pyOpenSSL-17.5.0.tar.gz

29
l/pyopenssl/pyopenssl.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2016 Damien Goutte-Gattat
# Copyright (C) 2010,2016,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,9 +29,9 @@
# Source package infos
NAMESRC=${NAMESRC:-pyOpenSSL}
VERSION=${VERSION:-16.0.0}
VERSION=${VERSION:-17.5.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/source/p/pyOpenSSL/$ARCHIVE}
WGET=${WGET:-https://pypi.python.org/packages/3b/15/a5d90ab1a41075e8f0fae334f13452549528f82142b3b9d0c9d86ab7178c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pyopenssl}
@ -57,25 +57,12 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
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
@ -83,8 +70,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
@ -96,6 +81,12 @@ install -m 644 CHANGELOG.rst CONTRIBUTING.rst LICENSE PKG-INFO README.rst \
# 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-six
python-cryptography
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save