From 3bdd47985e67657773b954744fe717c0f063f25e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 3 Feb 2020 11:46:39 -0500 Subject: python/html2text: Updated for version 2020.1.16, new maintainer. Signed-off-by: B. Watson --- python/html2text/html2text.SlackBuild | 42 +++++++++++++---------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'python/html2text/html2text.SlackBuild') diff --git a/python/html2text/html2text.SlackBuild b/python/html2text/html2text.SlackBuild index b837837b2e..2ce3a81392 100644 --- a/python/html2text/html2text.SlackBuild +++ b/python/html2text/html2text.SlackBuild @@ -2,8 +2,9 @@ # Slackware build script for html2text -# Copyright 2011 crocket (crockabiscuit@gmail.com) +# Copyright 2011 crocket (email removed) # Copyright 2013-2015 LukenShiro, Italy +# Copyright 2020 B. Watson # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,14 +24,22 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20200203 bkw: +# - new maintainer +# - i486 => i586 +# - upstream dropped support for python 2.x, so require python3 +# - expand README and slack-desc +# - get rid of unused template code +# - don't install test/ in docdir + PRGNAM=html2text -VERSION=${VERSION:-2015.11.4} +VERSION=${VERSION:-2020.1.16} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,22 +50,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -DOCFILES="AUTHORS.rst ChangeLog.rst COPYING README.md test/" - set -e rm -rf $PKG @@ -66,16 +59,13 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -python setup.py install --root=$PKG +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/ +cp -a *.rst *.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3