[arch-commits] Commit in bash-completion/repos (testing-any testing-any/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Sep 2 21:54:54 UTC 2016


    Date: Friday, September 2, 2016 @ 21:54:53
  Author: arojas
Revision: 275701

archrelease: copy trunk to testing-any

Added:
  bash-completion/repos/testing-any/
  bash-completion/repos/testing-any/PKGBUILD
    (from rev 275700, bash-completion/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: bash-completion/repos/testing-any/PKGBUILD (from rev 275700, bash-completion/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2016-09-02 21:54:53 UTC (rev 275701)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+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
+}



More information about the arch-commits mailing list