diff options
Diffstat (limited to 'python/ttfautohint-py')
-rw-r--r-- | python/ttfautohint-py/ttfautohint-py.SlackBuild | 21 | ||||
-rw-r--r-- | python/ttfautohint-py/ttfautohint-py.info | 8 |
2 files changed, 16 insertions, 13 deletions
diff --git a/python/ttfautohint-py/ttfautohint-py.SlackBuild b/python/ttfautohint-py/ttfautohint-py.SlackBuild index ef2dbab38b..f3d60226f2 100644 --- a/python/ttfautohint-py/ttfautohint-py.SlackBuild +++ b/python/ttfautohint-py/ttfautohint-py.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ttfautohint-py -# Copyright 2023 Vijay Marcel +# Copyright 2023-2025 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,10 +25,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ttfautohint-py -VERSION=${VERSION:-0.5.1} +VERSION=${VERSION:-0.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +SRCNAM=${SRCNAM:-ttfautohint_py} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -53,25 +54,27 @@ trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' E rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$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 \ + -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 {} \; + -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 python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 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 README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/ttfautohint-py/ttfautohint-py.info b/python/ttfautohint-py/ttfautohint-py.info index 4032753ea5..2ceb4f2cc1 100644 --- a/python/ttfautohint-py/ttfautohint-py.info +++ b/python/ttfautohint-py/ttfautohint-py.info @@ -1,10 +1,10 @@ PRGNAM="ttfautohint-py" -VERSION="0.5.1" +VERSION="0.6.0" HOMEPAGE="https://github.com/fonttools/ttfautohint-py" -DOWNLOAD="https://pypi.io/packages/source/t/ttfautohint-py/ttfautohint-py-0.5.1.tar.gz" -MD5SUM="91c73697362ec9999ec730700f0ba4e2" +DOWNLOAD="https://files.pythonhosted.org/packages/fa/fe/bac058f2844c06768f7f2fd2dbfc3c912685bc58543d20d1f891e4c2cb37/ttfautohint_py-0.6.0.tar.gz" +MD5SUM="7718539a8c4adaa90e4e883aafbcb24d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="ttfautohint python3-fonttools coverage" +REQUIRES="ttfautohint python3-fonttools coverage python3-setuptools-opt" MAINTAINER="Vijay Marcel" EMAIL="vijaymarcel@outlook.com" |