summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/freetype-py/changelog6
-rw-r--r--python/freetype-py/freetype-py.SlackBuild22
-rw-r--r--python/freetype-py/freetype-py.info8
3 files changed, 11 insertions, 25 deletions
diff --git a/python/freetype-py/changelog b/python/freetype-py/changelog
deleted file mode 100644
index 74d2604464..0000000000
--- a/python/freetype-py/changelog
+++ /dev/null
@@ -1,6 +0,0 @@
-Changelog for freetype-py SlackBuild Script
---------------------------------------------------------------------
-
-10/06/2023:
-
-submitted to SlackBuilds.org
diff --git a/python/freetype-py/freetype-py.SlackBuild b/python/freetype-py/freetype-py.SlackBuild
index 7347e9a4ca..785740ae68 100644
--- a/python/freetype-py/freetype-py.SlackBuild
+++ b/python/freetype-py/freetype-py.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for freetype-py
-# Copyright 2023 Vijay Marcel
+# Copyright 2023-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=freetype-py
-VERSION=${VERSION:-2.4.0}
+VERSION=${VERSION:-2.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -82,20 +79,15 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
-
python3 -m build --wheel --skip-dependency-check --no-isolation
-PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python3 -m installer --destdir="$PKG" dist/*.whl
-
-cd doc
-make singlehtml
-cd ..
+python3 -m installer --destdir="$PKG" dist/*.whl
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE.txt README.rst NOTES.txt $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/_build/* $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -pv $PKG/usr/doc/$PRGNAM-$VERSION
+cp -av LICENSE.txt README.rst NOTES.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -av doc examples $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 {} \+
diff --git a/python/freetype-py/freetype-py.info b/python/freetype-py/freetype-py.info
index f3b4bc1298..d5e5506963 100644
--- a/python/freetype-py/freetype-py.info
+++ b/python/freetype-py/freetype-py.info
@@ -1,10 +1,10 @@
PRGNAM="freetype-py"
-VERSION="2.4.0"
+VERSION="2.5.1"
HOMEPAGE="https://github.com/rougier/freetype-py"
-DOWNLOAD="https://github.com/rougier/freetype-py/archive/v2.4.0/freetype-py-2.4.0.tar.gz"
-MD5SUM="74f8356993d6496216afcd6adf0d0a8d"
+DOWNLOAD="https://github.com/rougier/freetype-py/archive/v2.5.1/freetype-py-2.5.1.tar.gz"
+MD5SUM="8d78d77df035d5133473be4a3125e09b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="Sphinx sphinx-rtd-theme"
+REQUIRES="python3-build python3-wheel"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"