summaryrefslogtreecommitdiff
path: root/python/pyOpenSSL/pyOpenSSL.SlackBuild
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2016-09-11 08:11:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-11 08:20:42 +0700
commitc66f8a8f7e5de5e70f9f45b5df1b8f4447f5f8d7 (patch)
tree08a7e72088748c283e44bef9cb37e21933aba7ba /python/pyOpenSSL/pyOpenSSL.SlackBuild
parent41e90a0feda5d76454c5a09f573f3005fc2122bf (diff)
downloadslackbuilds-c66f8a8f7e5de5e70f9f45b5df1b8f4447f5f8d7.tar.gz
python/pyOpenSSL: Updated for version 0.16.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pyOpenSSL/pyOpenSSL.SlackBuild')
-rw-r--r--python/pyOpenSSL/pyOpenSSL.SlackBuild24
1 files changed, 18 insertions, 6 deletions
diff --git a/python/pyOpenSSL/pyOpenSSL.SlackBuild b/python/pyOpenSSL/pyOpenSSL.SlackBuild
index e05eeeb033..5679431f68 100644
--- a/python/pyOpenSSL/pyOpenSSL.SlackBuild
+++ b/python/pyOpenSSL/pyOpenSSL.SlackBuild
@@ -1,9 +1,9 @@
#!/bin/sh
-# Slackware build script for pyOpenSSL.
+# Slackware build script for pyOpenSSL
#
# Copyright 2010-2011 Marco Bonetti <sid77@slackware.it>
-# Copyright 2012-2015 Markus Reichelt, Stolberg (Rhld.), DE
+# Copyright 2012-2016 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,13 +27,13 @@
# Now maintained by Markus Reichelt <slackbuilds@mareichelt.de>, 0xCCEEF115
PRGNAM=pyOpenSSL
-VERSION=${VERSION:-0.15.1}
+VERSION=${VERSION:-16.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -44,7 +44,19 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="PKG-INFO README.rst LICENSE"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
set -e
@@ -68,7 +80,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a PKG-INFO README.rst LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install