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

Dave Reisner dreisner at archlinux.org
Wed Jul 4 00:50:10 UTC 2012


    Date: Tuesday, July 3, 2012 @ 20:50:10
  Author: dreisner
Revision: 162936

archrelease: copy trunk to testing-any

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

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

Copied: bash-completion/repos/testing-any/PKGBUILD (from rev 162935, bash-completion/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2012-07-04 00:50:10 UTC (rev 162936)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=bash-completion
+pkgver=2.0
+pkgrel=2
+pkgdesc="Programmable completion for the bash shell"
+arch=('any')
+url="http://bash-completion.alioth.debian.org/"
+license=('GPL')
+depends=('bash')
+options=('!emptydirs' '!makeflags')
+source=(http://bash-completion.alioth.debian.org/files/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('0d903f398be8c8f24bc5ffa6f86127f8')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # XXX: this should be removed once /lib is a symlink to usr/lib
+  sed -i '/lib\/modules/ s,/lib/modules,/usr&,' bash_completion
+
+  ./configure --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+package() {
+  cd "${srcdir}/${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"
+}




More information about the arch-commits mailing list