aboutsummaryrefslogtreecommitdiff
path: root/libraries/python-spidermonkey/python-spidermonkey.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:33:21 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:33:21 +0200
commitbd9e4588c6e94481ed562e0ec65b931bef319bcd (patch)
tree2be0b5aa683d408892e7124b5365da766d9d8305 /libraries/python-spidermonkey/python-spidermonkey.SlackBuild
parentdf4410542517a0b7a23f84f4dd98024a6506bc93 (diff)
libraries/python-spidermonkey: Updated for version 0.0.8
Diffstat (limited to 'libraries/python-spidermonkey/python-spidermonkey.SlackBuild')
-rw-r--r--libraries/python-spidermonkey/python-spidermonkey.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/libraries/python-spidermonkey/python-spidermonkey.SlackBuild b/libraries/python-spidermonkey/python-spidermonkey.SlackBuild
index e6db25b25f954..f2d6e6485b763 100644
--- a/libraries/python-spidermonkey/python-spidermonkey.SlackBuild
+++ b/libraries/python-spidermonkey/python-spidermonkey.SlackBuild
@@ -1,9 +1,11 @@
#!/bin/sh
+
# Slackware build script for python-spidermonkey
+
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=python-spidermonkey
-VERSION=${VERSION:-0.0.5}
+VERSION=${VERSION:-0.0.8}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -29,11 +31,9 @@ find . \
-exec chmod 644 {} \;
# Get rid of ez_setup.
-patch -p1 < $CWD/setuptools.diff
-# Use the spidermonkey nspr.
-sed -i 's|nspr-config|seamonkey-config|' setup.py
+sed -i '/ez_setup/d' setup.py MANIFEST.in
-python setup.py install --root="${PKG}"
+python setup.py install --root=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -44,11 +44,12 @@ python setup.py install --root="${PKG}"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
-install -m 0644 $CWD/README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README.md > $PKG/usr/doc/$PRGNAM-$VERSION/README.md
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
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}