aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2015-01-06 21:47:01 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-10 07:48:33 +0700
commit5008cc6a93921cede79335339561de61cf6f3136 (patch)
tree441b7b5e81d1a3b9ae24d797274db229f625b543
parentf49b45f3073db2233d35b0204b01a8cedfc23835 (diff)
python/python3: Report correct extension suffix.
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
-rw-r--r--python/python3/python3.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index 4a49154681e65..908b3f9091588 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