1 # Description: Bash completion functions
2 # URL: http://bash-completion.alioth.debian.org/
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: Johannes Winkelmann, jw at smts dot ch
5 # Depends on: bash
6
7 name=bash-completion
8 version=2.1
9 release=2
10 source=(https://launchpad.net/$name/master/$version/+download/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 sed -i Makefile.* \
16 -e 's|pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|g' \
17 -e 's|profiledir = .*|profiledir = /etc|g'
18
19 ./configure --prefix=/usr --sysconfdir=/etc
20
21 make
22 make DESTDIR=$PKG install
23
24 mv $PKG/etc/bash_completion{.sh,}
25 chmod 0755 $PKG/usr/share/$name/bash_completion
26
27 # removed package tools from other systems rather than CRUX
28 rm $PKG/usr/share/$name/completions/{apt-*,aptitude,dpkg*}
29 rm $PKG/usr/share/$name/completions/{explode,install,make,remove,sbo,slack,upgrade}pkg
30 rm $PKG/usr/share/$name/completions/{pkg-get,pkg_*,pkg{add,rm,tool,util},slapt-*}
31 }
|