diff options
Diffstat (limited to 'libraries/PrettyTable')
-rw-r--r-- | libraries/PrettyTable/PrettyTable.SlackBuild | 25 | ||||
-rw-r--r-- | libraries/PrettyTable/PrettyTable.info | 2 | ||||
-rw-r--r-- | libraries/PrettyTable/slack-desc | 2 |
3 files changed, 22 insertions, 7 deletions
diff --git a/libraries/PrettyTable/PrettyTable.SlackBuild b/libraries/PrettyTable/PrettyTable.SlackBuild index 6e4762dafb..61059f2846 100644 --- a/libraries/PrettyTable/PrettyTable.SlackBuild +++ b/libraries/PrettyTable/PrettyTable.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for PrettyTable -# 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 @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=PrettyTable SRCNAM=prettytable VERSION=${VERSION:-0.7.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -72,6 +82,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 @@ -83,4 +98,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/PrettyTable/PrettyTable.info b/libraries/PrettyTable/PrettyTable.info index ac00e3615a..dd98ba3064 100644 --- a/libraries/PrettyTable/PrettyTable.info +++ b/libraries/PrettyTable/PrettyTable.info @@ -1,6 +1,6 @@ PRGNAM="PrettyTable" VERSION="0.7.2" -HOMEPAGE="https://github.com/dprince/python-prettytable" +HOMEPAGE="https://pypi.org/project/PrettyTable/" DOWNLOAD="https://pypi.python.org/packages/e0/a1/36203205f77ccf98f3c6cf17cf068c972e6458d7e58509ca66da949ca347/prettytable-0.7.2.tar.gz" MD5SUM="a6b80afeef286ce66733d54a0296b13b" DOWNLOAD_x86_64="" diff --git a/libraries/PrettyTable/slack-desc b/libraries/PrettyTable/slack-desc index 2a70ed4661..d8f0931400 100644 --- a/libraries/PrettyTable/slack-desc +++ b/libraries/PrettyTable/slack-desc @@ -12,7 +12,7 @@ PrettyTable: PrettyTable is a simple Python library designed to make it quick PrettyTable: and easy to represent tabular data in visually appealing ASCII PrettyTable: tables. PrettyTable: -PrettyTable: Homepage: https://github.com/dprince/python-prettytable +PrettyTable: Homepage: https://pypi.org/project/PrettyTable/ PrettyTable: PrettyTable: PrettyTable: |