diff options
-rw-r--r-- | python/python3/python3.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild index 4a49154681..908b3f9091 100644 --- a/python/python3/python3.SlackBuild +++ b/python/python3/python3.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3 -# Copyright 2012-2014 Audrius Kažukauskas <audrius@neutrino.lt> +# Copyright 2012-2015 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=python3 VERSION=${VERSION:-3.4.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -91,6 +91,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix the SO for --extension-suffix in python3-config. +sed -i 's|@SO@|@EXT_SUFFIX@|' Misc/python-config.sh.in + ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -113,7 +116,11 @@ rm -f $PKG/usr/bin/2to3 mkdir -p $SITEPK cp -a Tools/* $SITEPK -rm -f $SITEPK/setuptools/*.exe +# Remove DOS batch/exe files. +find $PKG \( -name '*.exe' -o -name '*.bat' \) -exec rm -f '{}' \; + +# Fix permissions on dynamic libraries. +find $PKG -type f -perm 555 -exec chmod 755 '{}' \; # Install docs: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |