aboutsummaryrefslogtreecommitdiff
path: root/python/python-pmw/python-pmw.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2012-09-15 21:30:55 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:45:35 -0400
commit6e64020c998b03a8bb689e7570b99471af547acc (patch)
tree928c999b7329256da5627d79ba48d0c9f0c88df8 /python/python-pmw/python-pmw.SlackBuild
parent986c2715a7e36fed824214c3bd0d8f7cdc5bed85 (diff)
python/python-pmw: Fixed for python 2.7.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/python-pmw/python-pmw.SlackBuild')
-rw-r--r--python/python-pmw/python-pmw.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/python/python-pmw/python-pmw.SlackBuild b/python/python-pmw/python-pmw.SlackBuild
index 4b66fc0b95bd5..a51bad8cc37a3 100644
--- a/python/python-pmw/python-pmw.SlackBuild
+++ b/python/python-pmw/python-pmw.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python-pmw
-# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2007-2012 LukenShiro, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,15 +24,13 @@
PRGNAM=python-pmw
VERSION=${VERSION:-1.3.2}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
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
@@ -57,9 +55,8 @@ else
fi
# Python site-packages directory
-PYTHONDIR="/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages"
+PYTHONDIR=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')")
-# Exit on most errors
set -e
rm -rf $PKG
@@ -69,7 +66,11 @@ rm -rf $SRC_PRGNAM.$VERSION
tar xvf $CWD/$SRC_PRGNAM.$VERSION.tar.gz
cd $SRC_PRGNAM.$VERSION/src/$SRC_PRGNAM
chown -R root:root . || true
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
# Move documentation files
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION