python/python3: Report correct extension suffix.

Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
This commit is contained in:
Audrius Kažukauskas 2015-01-06 21:47:01 +02:00 committed by Willy Sudiarto Raharjo
parent f49b45f307
commit 5008cc6a93

View file

@ -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