summaryrefslogtreecommitdiffstats
path: root/abs/extra/bash-completion/PKGBUILD
blob: a20fa08d5c83d2275222817a016ce3cdfecaed8e (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
# $Id: PKGBUILD 95183 2010-10-16 21:57:23Z eric $
# Maintainer: Aaron Griffin <aaron@archlinux.org>

pkgname=bash-completion
pkgver=1.2
pkgrel=2
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.bz2)
md5sums=('88c022a98a02a02293716f840eadd884')
sha1sums=('47e6fb919ae227e74172870379b0fe999a2ae70d')

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

  # fixes for archlinux
  sed -i 's#/sbin" lsmod#/bin" lsmod#' bash_completion

  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install

# Doesn't work on Arch Linux and cause problems (FS#20112)
  rm "$pkgdir/etc/bash_completion.d/service"
}