diff options
Diffstat (limited to 'python/cryptography/cryptography.SlackBuild')
-rw-r--r-- | python/cryptography/cryptography.SlackBuild | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/python/cryptography/cryptography.SlackBuild b/python/cryptography/cryptography.SlackBuild index 58dc113b97..5281ca2b82 100644 --- a/python/cryptography/cryptography.SlackBuild +++ b/python/cryptography/cryptography.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for cryptography -# Copyright 2014 Markus Reichelt, Stolberg (Rhld.), DE +# Copyright 2014-2015 Markus Reichelt, Stolberg (Rhld.), DE # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ # Markus Reichelt <slackbuilds@mareichelt.de>, 0xCCEEF115 PRGNAM=cryptography -VERSION=0.6 +VERSION=${VERSION:-0.7.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,6 +42,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 rm -rf $PKG |