summaryrefslogtreecommitdiffstats
path: root/development/python3/python3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/python3/python3.SlackBuild')
-rw-r--r--development/python3/python3.SlackBuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/development/python3/python3.SlackBuild b/development/python3/python3.SlackBuild
index c51b4110d7..253bef21aa 100644
--- a/development/python3/python3.SlackBuild
+++ b/development/python3/python3.SlackBuild
@@ -5,16 +5,14 @@
# Based on Patrick Volkerding's official build script for python
PRGNAM=python3
-VERSION=${VERSION:-3.1.2}
+VERSION=${VERSION:-3.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -54,7 +52,7 @@ patch -p1 < $CWD/patches/python3.readline.set_pre_input_hook.diff
if [ "$ARCH" = "x86_64" ]; then
# Install to lib64 instead of lib:
- patch -p1< $CWD/patches/python3.x86_64.diff
+ patch -p1 < $CWD/patches/python3.x86_64.diff
# Python must report /usr/lib64/python3.1/site-packages as python_lib_dir:
patch -p1 < $CWD/patches/python3.pure64.diff
fi
@@ -77,29 +75,21 @@ chmod -R u+w,go+r-w,a-s+X .
make
make altinstall DESTDIR=$PKG
-# Install some python-demo files:
-mkdir -p $PKG/usr/doc/python3-$VERSION
-cp -a Demo $PKG/usr/doc/python3-$VERSION
+# Create a symlink for convenience.
+( cd $PKG/usr/bin ; ln -sf python3.1 python3 )
# We'll install the python-tools under site-packages:
mkdir -p $SITEPK
cp -a Tools/* $SITEPK
-mkdir -p $PKG/usr/doc/python3-$VERSION
-mv $SITEPK/README $PKG/usr/doc/python3-$VERSION/README.python-tools
-( cd $PKG/usr/doc/python3-$VERSION ; ln -sf $TOOLSDIR Tools )
-
-# Install docs:
-mkdir -p $PKG/usr/doc/python3-$VERSION
-cp -a README LICENSE $PKG/usr/doc/python3-$VERSION
-cp -a Misc $PKG/usr/doc/python3-$VERSION
-cp -a Doc $PKG/usr/doc/python3-$VERSION
-
# Python 2.6 already has this script.
rm -f $PKG/usr/bin/2to3
-# Create a symlink for convenience.
-( cd $PKG/usr/bin ; ln -sf python3.1 python3 )
+# Install docs and demos:
+mkdir -p $PKG/usr/doc/python3-$VERSION
+cp -a README LICENSE Demo Doc Misc $PKG/usr/doc/python3-$VERSION
+mv $SITEPK/README $PKG/usr/doc/python3-$VERSION/README.python-tools
+( cd $PKG/usr/doc/python3-$VERSION ; ln -sf $TOOLSDIR Tools )
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true