aboutsummaryrefslogtreecommitdiff
path: root/python/click/click.SlackBuild
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2022-05-14 08:52:54 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-14 19:27:50 +0700
commit3328c5717a6f98e343ac008d58a4f49186e96e90 (patch)
tree8b0951d68bca1d93ebc7b54d1a6613a33f1a81e8 /python/click/click.SlackBuild
parentcdcb1735df749b0b873a240efa40331cab77a163 (diff)
python/click: Updated for version 8.1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/click/click.SlackBuild')
-rw-r--r--python/click/click.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/python/click/click.SlackBuild b/python/click/click.SlackBuild
index ec6d40e3d2..477f06355d 100644
--- a/python/click/click.SlackBuild
+++ b/python/click/click.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for click
+# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# Copyright 2014-2018 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
@@ -22,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220512 46and2: Updated version, new maintainer.
+# - Removed python2 support
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=click
-VERSION=${VERSION:-7.1.2}
+VERSION=${VERSION:-8.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,12 +83,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-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
+python3 setup.py install --root=$PKG
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