From 148ea40a9408bfc1a831526b0ad26171853fdca9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 14 Sep 2013 05:31:28 +0200 Subject: [PATCH] bash-completion: remove completions provided by util-linux. --- srcpkgs/bash-completion/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bash-completion/template b/srcpkgs/bash-completion/template index 40f9e0497b5..26fd81d5a2c 100644 --- a/srcpkgs/bash-completion/template +++ b/srcpkgs/bash-completion/template @@ -1,7 +1,7 @@ # Template file for 'bash-completion' pkgname=bash-completion version=2.1 -revision=1 +revision=2 build_style=gnu-configure makedepends="bash" short_desc="Programmable completion for the GNU Bash shell" @@ -17,6 +17,14 @@ long_desc=" commands, reducing the amount of typing sysadmins and programmers need to do on a daily basis." +post_install() { + # remove completions provided by util-linux. + for f in su dmesg ionice rtcwake look hexdump chsh renice hwclock \ + cal eject newgrp; do + rm -f ${DESTDIR}/usr/share/bash-completion/completions/${f} + done +} + bash-completion_package() { depends="bash" noarch="yes"