summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Robby Workman2021-08-01 11:18:06 +0200
committer Robby Workman2021-08-01 11:20:56 +0200
commit22b30f71db8fdd4cf056fbe1164e30e5b5fde1b3 (patch)
treeb1f435d1fa410c1126f8bb4aa45f1467f97a098c
parent7d7a33b188d072121e736a2a41b5877a94c5b22a (diff)
downloadslackbuilds-22b30f71db8fdd4cf056fbe1164e30e5b5fde1b3.tar.gz
desktop/bashrun2: Use systemwide dir for bash completion files
-rw-r--r--desktop/bashrun2/bashrun2.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/bashrun2/bashrun2.SlackBuild b/desktop/bashrun2/bashrun2.SlackBuild
index 707e322030..fb73749cee 100644
--- a/desktop/bashrun2/bashrun2.SlackBuild
+++ b/desktop/bashrun2/bashrun2.SlackBuild
@@ -92,7 +92,10 @@ make install-strip DESTDIR=$PKG
mv $PKG/etc/xdg/bashrun2/bashrun2.rc $PKG/etc/xdg/bashrun2/bashrun2.rc.new
mv $PKG/etc/xdg/bashrun2/plugins/terminal.rc $PKG/etc/xdg/bashrun2/plugins/terminal.rc.new
-mv $PKG/etc/bash_completion.d/bashrun2 $PKG/etc/bash_completion.d/bashrun2.new
+
+mkdir -p $PKG/usr/share/bash-completion/completions
+mv $PKG/etc/bash_completion.d/bashrun2 $PKG/usr/share/bash-completion/completions/bashrun2
+rm -rf $PKG/etc/bash_completion.d
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true