Date: Thursday, October 19, 2017 @ 15:01:50
Author: dreisner
Revision: 308261
archrelease: copy trunk to testing-any
Added:
bash-completion/repos/testing-any/
bash-completion/repos/testing-any/PKGBUILD
(from rev 308260, bash-completion/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: bash-completion/repos/testing-any/PKGBUILD (from rev 308260,
bash-completion/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-10-19 15:01:50 UTC (rev 308261)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Eric Bélanger <[email protected]>
+
+pkgname=bash-completion
+pkgver=2.7
+pkgrel=2
+pkgdesc='Programmable completion for the bash shell'
+arch=('any')
+url='https://github.com/scop/bash-completion'
+license=(GPL2)
+depends=(bash)
+options=(!emptydirs !makeflags)
+source=($url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz)
+sha1sums=('2260342127086cfedd4801f796fdaaa051411a14')
+
+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,rfkill}
+}