summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/python-pmw/python-pmw.SlackBuild23
-rw-r--r--development/python-pmw/python-pmw.info2
-rw-r--r--development/python-pmw/slack-desc2
3 files changed, 19 insertions, 8 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}
diff --git a/development/python-pmw/python-pmw.info b/development/python-pmw/python-pmw.info
index eb2e40e75c..e117586b1c 100644
--- a/development/python-pmw/python-pmw.info
+++ b/development/python-pmw/python-pmw.info
@@ -3,6 +3,8 @@ VERSION="1.3.2"
HOMEPAGE="http://pmw.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/pmw/Pmw.1.3.2.tar.gz"
MD5SUM="7f30886fe9885ab3cf85dac6ce1fbda5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it"
APPROVED="dsomero"
diff --git a/development/python-pmw/slack-desc b/development/python-pmw/slack-desc
index 666a206e20..927d588af4 100644
--- a/development/python-pmw/slack-desc
+++ b/development/python-pmw/slack-desc
@@ -15,5 +15,5 @@ python-pmw: built on this foundation. These megawidgets include notebooks,
python-pmw: comboboxes, selection widgets, paned widgets, scrolled widgets
python-pmw: and dialog windows.
python-pmw:
-python-pmw: http://pmw.sourceforge.net/
+python-pmw: Homepage: http://pmw.sourceforge.net/
python-pmw: