Date: Thursday, November 22, 2012 @ 12:00:16 Author: dreisner Revision: 171899
archrelease: copy trunk to testing-any Added: bash-completion/repos/testing-any/ bash-completion/repos/testing-any/PKGBUILD (from rev 171898, bash-completion/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: bash-completion/repos/testing-any/PKGBUILD (from rev 171898, bash-completion/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2012-11-22 17:00:16 UTC (rev 171899) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Eric BĂ©langer <e...@archlinux.org> + +pkgname=bash-completion +pkgver=2.0 +pkgrel=3 +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" + + # now provided by systemd + rm "${pkgdir}/usr/share/bash-completion/completions/udevadm" +}