summaryrefslogtreecommitdiffstats
path: root/source/l/python-docutils/python-docutils.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/python-docutils/python-docutils.SlackBuild')
-rwxr-xr-xsource/l/python-docutils/python-docutils.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/l/python-docutils/python-docutils.SlackBuild b/source/l/python-docutils/python-docutils.SlackBuild
index 7a9476ebd..6bbf75897 100755
--- a/source/l/python-docutils/python-docutils.SlackBuild
+++ b/source/l/python-docutils/python-docutils.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=python-docutils
VERSION=${VERSION:-$(echo docutils-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
SRCNAM=docutils
@@ -65,10 +65,12 @@ unshare -n python3 -m build --wheel --no-isolation || exit 1
python3 -m installer --destdir "$PKG" dist/*.whl || exit 1
-
+# Gotta be careful with that *
cd $PKG/usr/bin
for i in *.py; do
- ln -s "$i" "$PKG/usr/bin/$(basename $i .py)"
+ if [ -r "$i" ]; then
+ ln -s "$i" "$PKG/usr/bin/$(basename $i .py)"
+ fi
done
cd -