summaryrefslogtreecommitdiff
path: root/development/python-pmw/python-pmw.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/python-pmw/python-pmw.SlackBuild')
-rw-r--r--development/python-pmw/python-pmw.SlackBuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/development/python-pmw/python-pmw.SlackBuild b/development/python-pmw/python-pmw.SlackBuild
index e1c2b398d8..f21170d4c6 100644
--- a/development/python-pmw/python-pmw.SlackBuild
+++ b/development/python-pmw/python-pmw.SlackBuild
@@ -22,13 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Exit on most errors
-set -e
-
PRGNAM=python-pmw
VERSION=${VERSION:-1.3.2}
-ARCH=${ARCH:-noarch}
-BUILD=${BUILD:-2}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -38,8 +35,20 @@ OUTPUT=${OUTPUT:-/tmp}
SRC_PRGNAM=Pmw
SRC_SUBDIR=Pmw_1_3
+
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+fi
+
# Python site-packages directory
-PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")')
+PYTHONDIR="/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages"
+
+# Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -66,4 +75,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}