diff options
author | LukenShiro <lukenshiro@ngi.it> | 2012-12-29 16:27:20 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-29 16:27:37 +0100 |
commit | 5b4d7565250281b9d9da048bdf72be57ba520da7 (patch) | |
tree | ab58dd4b978a77303fd9505d8ba374144da0639b /python/python-pmw/python-pmw.SlackBuild | |
parent | 3e168c3203aa81e5f4991d6d935053cc3498fca9 (diff) | |
download | slackbuilds-5b4d7565250281b9d9da048bdf72be57ba520da7.tar.gz |
python/python-pmw: Updated for version 1.3.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'python/python-pmw/python-pmw.SlackBuild')
-rw-r--r-- | python/python-pmw/python-pmw.SlackBuild | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/python/python-pmw/python-pmw.SlackBuild b/python/python-pmw/python-pmw.SlackBuild index a51bad8cc3..ba335975fd 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-2012 LukenShiro, Italy +# Copyright 2007-2013 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-pmw -VERSION=${VERSION:-1.3.2} -BUILD=${BUILD:-4} +VERSION=${VERSION:-1.3.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -41,7 +41,7 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} SRC_PRGNAM=Pmw -SRC_SUBDIR=Pmw_1_3 +SRC_SUBDIR=Pmw_1_3_3 if [ "$ARCH" = "i486" ]; then LIBDIRSUFFIX="" @@ -54,17 +54,16 @@ else LIBDIRSUFFIX="" fi -# Python site-packages directory -PYTHONDIR=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')") - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRC_PRGNAM.$VERSION +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION tar xvf $CWD/$SRC_PRGNAM.$VERSION.tar.gz -cd $SRC_PRGNAM.$VERSION/src/$SRC_PRGNAM +cd src/$SRC_PRGNAM chown -R root:root . || true find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -78,11 +77,8 @@ mv README $PKG/usr/doc/$PRGNAM-$VERSION mv $SRC_SUBDIR/doc $PKG/usr/doc/$PRGNAM-$VERSION/html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Manual installation because python setup.py install seems to not be working -mkdir -p $PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR -cp -a $SRC_SUBDIR/{bin,contrib,demos,lib,tests,__init__.py} \ - $PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR -cp -a __init__.py Alpha_99_9_example $PKG/$PYTHONDIR/$SRC_PRGNAM +cd .. +python ./setup.py install --root=$PKG mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |