From 9360748bfbb238551b4c1eef8f1b9ef2e90cbce0 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 31 Oct 2016 13:22:55 +0000 Subject: bash-completion: initial inclusion --- abs/extra/bash-completion/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 abs/extra/bash-completion/PKGBUILD diff --git a/abs/extra/bash-completion/PKGBUILD b/abs/extra/bash-completion/PKGBUILD new file mode 100644 index 0000000..575e523 --- /dev/null +++ b/abs/extra/bash-completion/PKGBUILD @@ -0,0 +1,34 @@ +# $Id$ +# Maintainer: Eric BĂ©langer + +pkgname=bash-completion +pkgver=2.4 +pkgrel=1 +pkgdesc="Programmable completion for the bash shell" +arch=('any') +url="https://github.com/scop/bash-completion" +license=('GPL2') +depends=('bash') +options=('!emptydirs' '!makeflags') +source=("https://github.com/scop/bash-completion/releases/download/$pkgver/$pkgname-$pkgver.tar.xz") +sha1sums=('c02fb9c0f669d178f678c291ea17ddadfd011250') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + +# bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it + rm "${pkgdir}/etc/profile.d/bash_completion.sh" + +# remove Slackware's makepkg completion + rm "${pkgdir}/usr/share/bash-completion/completions/makepkg" + +# remove completions which overlap with util-linux + rm "${pkgdir}/usr/share/bash-completion/completions"/{u,}mount +} -- cgit v0.12