aboutsummaryrefslogtreecommitdiff
path: root/desktop/bashrun2
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-08-01 04:18:06 -0500
committerRobby Workman <rworkman@slackbuilds.org>2021-08-01 04:20:56 -0500
commit22b30f71db8fdd4cf056fbe1164e30e5b5fde1b3 (patch)
treeb1f435d1fa410c1126f8bb4aa45f1467f97a098c /desktop/bashrun2
parent7d7a33b188d072121e736a2a41b5877a94c5b22a (diff)
desktop/bashrun2: Use systemwide dir for bash completion files
Diffstat (limited to 'desktop/bashrun2')
-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 707e3220302a1..fb73749ceeffb 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