summaryrefslogtreecommitdiff
path: root/development/pycrypto/pycrypto.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:25:17 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:25:17 +0200
commita1c867b80817bc65a35405dbab57c9619448ba6e (patch)
treed675c481220e6fb7276adc409db33533c7392c78 /development/pycrypto/pycrypto.SlackBuild
parente296adf8af86306f8295643d8de8741ac0b51fdc (diff)
downloadslackbuilds-a1c867b80817bc65a35405dbab57c9619448ba6e.tar.gz
development/pycrypto: Updated for version 2.1.0
Diffstat (limited to 'development/pycrypto/pycrypto.SlackBuild')
-rw-r--r--development/pycrypto/pycrypto.SlackBuild21
1 files changed, 5 insertions, 16 deletions
diff --git a/development/pycrypto/pycrypto.SlackBuild b/development/pycrypto/pycrypto.SlackBuild
index a94ef1f89e..bc82c06bbd 100644
--- a/development/pycrypto/pycrypto.SlackBuild
+++ b/development/pycrypto/pycrypto.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pycrypto
-# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,9 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pycrypto
-VERSION=2.0.1
+VERSION=2.1.0
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -33,14 +33,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
-fi
-
set -e
rm -rf $PKG
@@ -56,16 +48,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Fixes buffer overflow in the PyCrypto ARC2 module
-patch -p1 -i $CWD/pycrypto-CVE-2009-0544.patch
-
python setup.py install --root=$PKG
find $PKG | xargs file | grep "shared object" | grep ELF | \
cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ACKS ChangeLog LICENSE MANIFEST PKG-INFO README TODO Doc \
+cp -a ACKS ChangeLog COPYRIGHT README TODO Doc \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -73,4 +62,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}