aboutsummaryrefslogtreecommitdiff
path: root/libraries/facebook-python/facebook-python.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/facebook-python/facebook-python.SlackBuild')
-rw-r--r--libraries/facebook-python/facebook-python.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/libraries/facebook-python/facebook-python.SlackBuild b/libraries/facebook-python/facebook-python.SlackBuild
index 95a37478e5286..0798721222dd8 100644
--- a/libraries/facebook-python/facebook-python.SlackBuild
+++ b/libraries/facebook-python/facebook-python.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for facebook-python
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=facebook-python
SCRNAM=facebook-sdk
-VERSION=${VERSION:-0.4.0}
+VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,14 +61,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SCRNAM-$VERSION
-tar xvf $CWD/$SCRNAM-$VERSION.tar.gz
+tar xvf $CWD/$SCRNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $SCRNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
@@ -80,7 +80,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst CONTRIBUTING.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install