[arch-commits] Commit in bash-completion/repos (testing-any testing-any/PKGBUILD)
Dave Reisner
dreisner at archlinux.org
Thu Nov 22 17:00:16 UTC 2012
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 <eric at 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"
+}
More information about the arch-commits
mailing list