development/python-pmw: Updated for version 1.3.2
This commit is contained in:
parent
aec5579d49
commit
dbe272a954
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for python-pmw
|
||||
|
||||
# Copyright 2007 LukenShiro <lukenshiro@ngi.it>
|
||||
# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -26,25 +26,25 @@
|
|||
set -e
|
||||
|
||||
PRGNAM=python-pmw
|
||||
VERSION=1.3.2
|
||||
SRC_PRGNAM=Pmw
|
||||
SRC_SUBDIR=Pmw_1_3
|
||||
VERSION=${VERSION:-1.3.2}
|
||||
ARCH=${ARCH:-noarch}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PYTHON_DIR="/usr/lib/python2.5/site-packages/"
|
||||
SRC_PRGNAM=Pmw
|
||||
SRC_SUBDIR=Pmw_1_3
|
||||
# Python site-packages directory
|
||||
PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")')
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
mkdir -p $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
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
|
||||
|
@ -57,10 +57,10 @@ 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/$PYTHON_DIR/$SRC_PRGNAM/$SRC_SUBDIR
|
||||
mkdir -p $PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR
|
||||
cp -a $SRC_SUBDIR/{bin,contrib,demos,lib,tests,__init__.py} \
|
||||
$PKG/$PYTHON_DIR/$SRC_PRGNAM/$SRC_SUBDIR
|
||||
cp -a __init__.py Alpha_99_9_example $PKG/$PYTHON_DIR/$SRC_PRGNAM
|
||||
$PKG/$PYTHONDIR/$SRC_PRGNAM/$SRC_SUBDIR
|
||||
cp -a __init__.py Alpha_99_9_example $PKG/$PYTHONDIR/$SRC_PRGNAM
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/pmw/Pmw.1.3.2.tar.gz"
|
|||
MD5SUM="7f30886fe9885ab3cf85dac6ce1fbda5"
|
||||
MAINTAINER="LukenShiro"
|
||||
EMAIL="lukenshiro@ngi.it"
|
||||
APPROVED="Erik Hanson"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in New Issue