aboutsummaryrefslogtreecommitdiff
path: root/python/ttfautohint-py/ttfautohint-py.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/ttfautohint-py/ttfautohint-py.SlackBuild')
-rw-r--r--python/ttfautohint-py/ttfautohint-py.SlackBuild21
1 files changed, 12 insertions, 9 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