From 5008cc6a93921cede79335339561de61cf6f3136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Audrius=20Ka=C5=BEukauskas?= Date: Tue, 6 Jan 2015 21:47:01 +0200 Subject: python/python3: Report correct extension suffix. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Audrius Kažukauskas --- python/python3/python3.SlackBuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild index 4a49154681e6..908b3f909158 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 +# Copyright 2012-2015 Audrius Kažukauskas # 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 -- cgit v1.2.3