summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Robby Workman2021-08-01 10:40:38 +0200
committer Robby Workman2021-08-01 11:20:55 +0200
commit667a24046635706bc16a0a3311dd3174605eaca6 (patch)
treedd477b05382eb26d57908777dfe3189ec3bcfaa8 /system
parent7522fd9bba9f685fbf9c959e7c4d52a9f4f6be95 (diff)
downloadslackbuilds-667a24046635706bc16a0a3311dd3174605eaca6.tar.gz
system/spman: Install bash-completion file to systemwide dir
Diffstat (limited to 'system')
-rw-r--r--system/spman/spman.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/spman/spman.SlackBuild b/system/spman/spman.SlackBuild
index c65c0e6267..6d5b58cc2f 100644
--- a/system/spman/spman.SlackBuild
+++ b/system/spman/spman.SlackBuild
@@ -88,7 +88,7 @@ find -L . \
mkdir -p $PKG/usr/sbin
install --mode=755 src/$PRGNAM $PKG/usr/sbin
-# etc/{spman,bash_completion.d}
+# etc/spman
cp -R etc $PKG
(
cd $PKG/etc/$PRGNAM || exit 1
@@ -98,7 +98,11 @@ cp -R etc $PKG
mv $CONFIG $CONFIG.new
done
)
-chmod 755 $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh
+
+mkdir -p $PKG/usr/share/bash-completion/completions
+mv $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh \
+ $PKG/usr/share/bash-completion/completions/$PRGNAM
+rm -rf $PKG/etc/bash_completion.d
# python libs
PY3VER="$(python3 -c 'import sys; ver = sys.version_info; \