summaryrefslogtreecommitdiff
path: root/libraries/json-py/json-py.SlackBuild
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-13 00:29:58 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:29:58 +0200
commit97b0d23b5b9cb6f7b7afeeec0006fda6f580d0a6 (patch)
tree9359cb9d5210a58b8590e440a21dc20b49acdb37 /libraries/json-py/json-py.SlackBuild
parent422a999b019fe1df3cf7627c129076becfc2a254 (diff)
downloadslackbuilds-97b0d23b5b9cb6f7b7afeeec0006fda6f580d0a6.tar.gz
libraries/json-py: Updated for version 3.4
Diffstat (limited to 'libraries/json-py/json-py.SlackBuild')
-rw-r--r--libraries/json-py/json-py.SlackBuild9
1 files changed, 4 insertions, 5 deletions
diff --git a/libraries/json-py/json-py.SlackBuild b/libraries/json-py/json-py.SlackBuild
index 695a8ea9be..f15b962c49 100644
--- a/libraries/json-py/json-py.SlackBuild
+++ b/libraries/json-py/json-py.SlackBuild
@@ -23,9 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=json-py
-SRCNAM=json
VERSION=3.4
-SRCVERSION=3_4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,6 +33,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+SRCVERSION=3_4
+SRCNAM=json
DOCS="license.txt readme.txt"
set -e
@@ -59,8 +59,7 @@ chmod 644 *.txt
# Add setup.py
cat $CWD/setup.py > setup.py
-python setup.py bdist
-tar zxvf dist/$SRCNAM-$VERSION.linux-i686.tar.gz -C $PKG
+python setup.py install --root=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -77,4 +76,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}