summaryrefslogtreecommitdiff
path: root/libraries/pygoogle/pygoogle.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pygoogle/pygoogle.SlackBuild')
-rw-r--r--libraries/pygoogle/pygoogle.SlackBuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/libraries/pygoogle/pygoogle.SlackBuild b/libraries/pygoogle/pygoogle.SlackBuild
index 636a45f2d3..590e31a4c3 100644
--- a/libraries/pygoogle/pygoogle.SlackBuild
+++ b/libraries/pygoogle/pygoogle.SlackBuild
@@ -41,7 +41,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -56,8 +56,7 @@ chmod 644 readme.txt
# Fix version in setup.py
zcat $CWD/version.patch.gz | patch -p1
-python setup.py bdist
-tar zxvf dist/$PRGNAM-$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 : | \
@@ -74,4 +73,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}