summaryrefslogtreecommitdiff
path: root/python/python-spidermonkey/python-spidermonkey.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-spidermonkey/python-spidermonkey.SlackBuild')
-rw-r--r--python/python-spidermonkey/python-spidermonkey.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/python-spidermonkey/python-spidermonkey.SlackBuild b/python/python-spidermonkey/python-spidermonkey.SlackBuild
index d4d7d3851d..9a8aea116c 100644
--- a/python/python-spidermonkey/python-spidermonkey.SlackBuild
+++ b/python/python-spidermonkey/python-spidermonkey.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=python-spidermonkey
-VERSION=${VERSION:-0.0.8}
+VERSION=${VERSION:-20120725_7c9b4d6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -30,7 +30,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -42,6 +42,8 @@ find . \
# Get rid of ez_setup.
sed -i '/ez_setup/d' setup.py MANIFEST.in
+export CFLAGS="$(pkg-config --cflags mozjs185 mozilla-nspr)"
+export LDFLAGS="$(pkg-config --libs mozjs185 mozilla-nspr)"
python setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \