summaryrefslogtreecommitdiff
path: root/python/pySmartDL/pySmartDL.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/pySmartDL/pySmartDL.SlackBuild')
-rw-r--r--python/pySmartDL/pySmartDL.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/pySmartDL/pySmartDL.SlackBuild b/python/pySmartDL/pySmartDL.SlackBuild
index 3c2a2177a6..7ad3deb458 100644
--- a/python/pySmartDL/pySmartDL.SlackBuild
+++ b/python/pySmartDL/pySmartDL.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pySmartDL
-VERSION=${VERSION:-1.1.2}
+VERSION=${VERSION:-1.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,14 +71,16 @@ find -L . \
python setup.py install --root=$PKG
+if $(python3 -c 'import sys' 2>/dev/null); then
+ python3 setup.py install --root=$PKG
+fi
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp "-a" \
- README.md PKG-INFO ChangeLog.txt LICENSE.txt \
- docs/* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md PKG-INFO ChangeLog.txt LICENSE.txt docs/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install