diff options
author | LukenShiro <lukenshiro@ngi.it> | 2010-05-13 00:25:23 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:25:23 +0200 |
commit | 86910eb92d871c13f4c83a51e133d359a62ea5e2 (patch) | |
tree | 645f9be42f50bf5362c20ae8f930fda7ce097e4e /development/python-pmw/python-pmw.SlackBuild | |
parent | 94e92b19015b4e575ca228f305f4567f08ea2854 (diff) | |
download | slackbuilds-86910eb92d871c13f4c83a51e133d359a62ea5e2.tar.gz |
development/python-pmw: Updated for version 1.3.2
Diffstat (limited to 'development/python-pmw/python-pmw.SlackBuild')
-rw-r--r-- | development/python-pmw/python-pmw.SlackBuild | 23 |
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} |