diff options
Diffstat (limited to 'libraries/python-spidermonkey/python-spidermonkey.SlackBuild')
-rw-r--r-- | libraries/python-spidermonkey/python-spidermonkey.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/libraries/python-spidermonkey/python-spidermonkey.SlackBuild b/libraries/python-spidermonkey/python-spidermonkey.SlackBuild index e6db25b25f..f2d6e6485b 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} |