diff options
Diffstat (limited to 'python/python-kerberos/python-kerberos.SlackBuild')
-rw-r--r-- | python/python-kerberos/python-kerberos.SlackBuild | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/python/python-kerberos/python-kerberos.SlackBuild b/python/python-kerberos/python-kerberos.SlackBuild index b1810f1c74d1..6589f88d3404 100644 --- a/python/python-kerberos/python-kerberos.SlackBuild +++ b/python/python-kerberos/python-kerberos.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for python-kerberos # Copyright (c) 2014 LEVAI Daniel -# Copyright 2018 Thibaut Notteboom, Paris, FRANCE +# Copyright 2018-2022 Thibaut Notteboom, Paris, FRANCE # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,12 +26,12 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python-kerberos -VERSION=${VERSION:-1.2.1} +VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=pykerberos +SRCNAM=kerberos if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -82,19 +82,15 @@ 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 +python2 setup.py install --root=$PKG +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE README.txt \ + README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |