mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
python/freetype-py: Updated for version 2.5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6ea3fa5187
commit
6b1c8d7212
3 changed files with 11 additions and 25 deletions
|
@ -1,6 +0,0 @@
|
|||
Changelog for freetype-py SlackBuild Script
|
||||
--------------------------------------------------------------------
|
||||
|
||||
10/06/2023:
|
||||
|
||||
submitted to SlackBuilds.org
|
|
@ -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 {} \+
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue