diff options
Diffstat (limited to 'python/python3-keyring/python3-keyring.SlackBuild')
-rw-r--r-- | python/python3-keyring/python3-keyring.SlackBuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/python/python3-keyring/python3-keyring.SlackBuild b/python/python3-keyring/python3-keyring.SlackBuild index 5bdb75588e..9e62539e07 100644 --- a/python/python3-keyring/python3-keyring.SlackBuild +++ b/python/python3-keyring/python3-keyring.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for python3-keyring # Copyright 2015-2019 Dimitris Zlatanidis Orestiada, Greece -# Copyright 2024 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2024-2025 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-keyring -VERSION=${VERSION:-25.5.0} +VERSION=${VERSION:-25.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -71,6 +71,14 @@ export PYTHONPATH=/opt/python$PYVER/site-packages/ python3 -m build --no-isolation python3 -m installer -d "$PKG" dist/*.whl +# Add python3-keyring shell completions (requires python3-shtab) +if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("shtab"))'); then + mkdir -p $PKG/usr/share/bash-completion/completions + mkdir -p $PKG/usr/share/zsh/site-functions + $PKG/usr/bin/keyring --print-completion bash > $PKG/usr/share/bash-completion/completions/keyring + $PKG/usr/bin/keyring --print-completion zsh > $PKG/usr/share/zsh/site-functions/_keyring +fi + 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 |