aboutsummaryrefslogtreecommitdiff
path: root/python/python3-fonttools/python3-fonttools.SlackBuild
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-08-22 20:35:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-22 23:24:23 +0700
commitb747c6d028b7c47408ce68e0e91a57812636320d (patch)
tree82065dbd193bf776a11d80df4c021ab2f7a33162 /python/python3-fonttools/python3-fonttools.SlackBuild
parent91dc42139592e6d3f5f852fc136be69b52f8712f (diff)
python/python3-fonttools: Updated for version 4.53.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-fonttools/python3-fonttools.SlackBuild')
-rw-r--r--python/python3-fonttools/python3-fonttools.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/python/python3-fonttools/python3-fonttools.SlackBuild b/python/python3-fonttools/python3-fonttools.SlackBuild
index 2303aff7c4..9c6dab80ee 100644
--- a/python/python3-fonttools/python3-fonttools.SlackBuild
+++ b/python/python3-fonttools/python3-fonttools.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-fonttools
SRCNAM=fonttools
-VERSION=${VERSION:-4.51.0}
+VERSION=${VERSION:-4.53.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,6 +79,8 @@ 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 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
@@ -88,16 +90,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mv -v $PKG/usr/share/man $PKG/usr
rm -rvf $PKG/usr/share
-cd Doc
-make man
-mv -v $TMP/$SRCNAM-$VERSION/Doc/build/man/fonttools.1 $PKG/usr/man/man1/
-cd ..
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CONTRIBUTING.md LICENSE.external LICENSE README.rst CODE_OF_CONDUCT.md NEWS.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.external LICENSE README.rst NEWS.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+