summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2020-02-27 19:35:08 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-29 07:45:12 +0700
commit12ac39355c49214c330586a9520d928613f432a4 (patch)
tree25b7b15c84844c841b7c91f40ca2f926ee0e1afd /libraries
parent6c39f6afb29b36f3c48a1d4944fbabc8f2583d05 (diff)
downloadslackbuilds-12ac39355c49214c330586a9520d928613f432a4.tar.gz
libraries/QDarkStyle: Added python3 support.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/QDarkStyle/QDarkStyle.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/QDarkStyle/QDarkStyle.SlackBuild b/libraries/QDarkStyle/QDarkStyle.SlackBuild
index 70cf044a49..6bb50ff484 100644
--- a/libraries/QDarkStyle/QDarkStyle.SlackBuild
+++ b/libraries/QDarkStyle/QDarkStyle.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for QDarkStyle
-# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2020 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=QDarkStyle
VERSION=${VERSION:-1.11}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,6 +71,11 @@ find -L . \
python setup.py install --root=$PKG
+# Python 3 support.
+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