summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:41 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:10 +0200
commit3637938c8fe00282a51ef93996c59cc5dc8669c7 (patch)
tree6e25cbb4dac06d23d19606a165231c4f0bc50193
parentcadae600e7acfc9d37fa3fa74711b24a461d5d7c (diff)
downloadslackbuilds-3637938c8fe00282a51ef93996c59cc5dc8669c7.tar.gz
office/python3-xlsx2csv: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild b/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild
index 4e82113b9d..2fcf029600 100644
--- a/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild
+++ b/office/python3-xlsx2csv/python3-xlsx2csv.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-xlsx2csv
-# Copyright 2023 fourtysixandtwo <fourtysixandtwo@sliderr.net>
+# Copyright 2023-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -64,7 +64,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# use newer setuptools
-export PYTHONPATH=/opt/python3.9/site-packages/
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages/
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
@@ -76,7 +77,7 @@ cp -a man/$SRCNAM.1 $PKG/usr/man/man1
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
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+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