summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/bash-completion/PKGBUILD
blob: a60a49a609d5a6adfa08ccad14645e860d7b1d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 67318 2010-02-06 09:38:55Z eric $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>
# Contributor: Evangelos Foutras <foutrelis@gmail.com>

pkgname=bash-completion
pkgver=1.1
pkgrel=3
pkgdesc="Programmable completion for the bash shell"
arch=(any)
url="http://bash-completion.alioth.debian.org/"
license=('GPL')
depends=('bash')
source=(http://bash-completion.alioth.debian.org/files/$pkgname-$pkgver.tar.gz cowsay.bashcomp)
md5sums=('593d3edcf287b9e9d735049bd4d3f229' 'e9766bdc391caf825cb24e704422987e')
sha1sums=('0e666ebda3d577571ab62bcecc16e1024922cd18' 'a8620aa1029d46bae92be8a6ea0eb62d737545ef')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # fixes for archlinux
  sed -i 's#/sbin/lsmod#/bin/lsmod#' bash_completion || return 1

  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR="$pkgdir" install
  install -D -m644 "$srcdir/cowsay.bashcomp" "$pkgdir/etc/bash_completion.d/cowsay"

  # apache2ctl doesn't work, even when renamed to apachectl (and sed'd)
  rm "$pkgdir/etc/bash_completion.d/apache2ctl"
  # munin-node doesn't work, even i've updated munin to 1.4.0
  rm "$pkgdir/etc/bash_completion.d/munin-node"
}
# vim:set ts=2 sw=2 et: