diff options
Diffstat (limited to 'python/python-twisted/python-twisted.SlackBuild')
-rw-r--r-- | python/python-twisted/python-twisted.SlackBuild | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/python/python-twisted/python-twisted.SlackBuild b/python/python-twisted/python-twisted.SlackBuild index 5304f5cfee70c..3a40979290e6d 100644 --- a/python/python-twisted/python-twisted.SlackBuild +++ b/python/python-twisted/python-twisted.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for python-twisted. # Copyright 2009-2011 Marco Bonetti <sid77@slackware.it> +# Copyright 2012 Markus Reichelt, Aachen, DE # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +28,7 @@ PRGNAM=python-twisted SRCNAM=Twisted -VERSION=${VERSION:-12.0.0} +VERSION=${VERSION:-12.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,14 +45,18 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="LICENSE NEWS README" - 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 @@ -62,24 +67,22 @@ cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 cd $SRCNAM-$VERSION - chown -R root:root . - find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -python setup.py build - python setup.py install --root=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |