aboutsummaryrefslogtreecommitdiff
path: root/python/html2text
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-16 06:17:03 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-12-20 07:50:53 +0700
commit588fdc50c96270109fc2aaa6e0c148e81d6144f5 (patch)
treecd47a49a4bda6e2807ab8c07e54f541fe7dcf35c /python/html2text
parent2aac82e87d36156f700b76ccf83ecc34a89ed941 (diff)
python/html2text: Updated for version 2025.4.15.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/html2text')
-rw-r--r--python/html2text/html2text.SlackBuild23
-rw-r--r--python/html2text/html2text.info8
2 files changed, 19 insertions, 12 deletions
diff --git a/python/html2text/html2text.SlackBuild b/python/html2text/html2text.SlackBuild
index 306eac94db..0b63a2400d 100644
--- a/python/html2text/html2text.SlackBuild
+++ b/python/html2text/html2text.SlackBuild
@@ -4,7 +4,7 @@
# Copyright 2011 crocket (email removed)
# Copyright 2013-2015 LukenShiro, Italy
-# Copyright 2020 B. Watson
+# Copyright 2020-2025 B. Watson
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,6 +24,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20251216 bkw: update for v2025.4.15.
# 20240814 bkw: update for v2024.2.26.
# 20200203 bkw:
# - new maintainer
@@ -36,7 +37,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=html2text
-VERSION=${VERSION:-2024.2.26}
+VERSION=${VERSION:-2025.4.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -67,14 +68,20 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find . ! -type l -a \
+ \( -perm /111 -a ! -perm 755 -a -exec chmod -f 755 {} + \) -o \
+ \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \)
-python3 setup.py install --root=$PKG
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
-mkdir -p $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
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a *.rst *.md COPYING $PKGDOC/
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/python/html2text/html2text.info b/python/html2text/html2text.info
index f9cabbe1ae..0e6dc10fd9 100644
--- a/python/html2text/html2text.info
+++ b/python/html2text/html2text.info
@@ -1,10 +1,10 @@
PRGNAM="html2text"
-VERSION="2024.2.26"
+VERSION="2025.4.15"
HOMEPAGE="https://github.com/Alir3z4/html2text"
-DOWNLOAD="https://github.com/Alir3z4/html2text/archive/2024.2.26/html2text-2024.2.26.tar.gz"
-MD5SUM="af81376e5368d8f4311cb342c8e96b2c"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/h/html2text/html2text-2025.4.15.tar.gz"
+MD5SUM="d4fb2b23350c6fff96dd1f47e35acb56"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-setuptools-opt"
MAINTAINER="B. Watson"
EMAIL="urchlay@slackware.uk"