2010-05-22 06:07:29 +08:00
|
|
|
pkgname=bash-completion
|
2017-10-20 05:33:41 +08:00
|
|
|
pkgver=2.7
|
2017-02-08 08:17:53 +08:00
|
|
|
pkgrel=1
|
2010-05-22 06:07:29 +08:00
|
|
|
pkgdesc="Programmable completion for the bash shell"
|
2011-10-09 17:29:58 +08:00
|
|
|
arch=('any')
|
2016-04-19 08:14:45 +08:00
|
|
|
url="https://github.com/scop/bash-completion"
|
|
|
|
license=('GPL2')
|
2010-05-22 06:07:29 +08:00
|
|
|
depends=('bash')
|
2014-09-23 00:51:29 +08:00
|
|
|
options=('!emptydirs' '!makeflags')
|
|
|
|
#http://bash-completion.alioth.debian.org/files/${pkgname}-${pkgver}.tar.bz2
|
2016-09-03 15:40:09 +08:00
|
|
|
source=("https://github.com/scop/bash-completion/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
2017-10-20 05:33:41 +08:00
|
|
|
sha256sums=('41ba892d3f427d4a686de32673f35401bc947a7801f684127120cdb13641441e')
|
2010-05-22 06:07:29 +08:00
|
|
|
|
|
|
|
build() {
|
2014-09-23 00:51:29 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2012-09-10 02:31:30 +08:00
|
|
|
|
2010-05-22 06:07:29 +08:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
2011-10-09 17:29:58 +08:00
|
|
|
make
|
|
|
|
}
|
2010-05-22 06:07:29 +08:00
|
|
|
|
2011-10-09 17:29:58 +08:00
|
|
|
package() {
|
2014-09-23 00:51:29 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2011-10-09 17:29:58 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2017-01-11 12:24:14 +08:00
|
|
|
# bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it
|
2014-09-23 00:51:29 +08:00
|
|
|
rm "${pkgdir}/etc/profile.d/bash_completion.sh"
|
|
|
|
|
2017-01-11 12:24:14 +08:00
|
|
|
# remove Slackware's makepkg completion
|
2012-09-10 02:31:30 +08:00
|
|
|
rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
|
2017-01-11 12:24:14 +08:00
|
|
|
|
|
|
|
# remove completions which overlap with util-linux
|
2017-10-20 05:33:41 +08:00
|
|
|
rm "$pkgdir/usr/share/bash-completion/completions"/{{u,}mount,rfkill}
|
2010-05-22 06:07:29 +08:00
|
|
|
}
|