2010-05-22 06:07:29 +08:00
|
|
|
pkgname=bash-completion
|
2017-02-08 08:17:53 +08:00
|
|
|
pkgver=2.5
|
|
|
|
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-02-08 08:17:53 +08:00
|
|
|
sha256sums=('b0b9540c65532825eca030f1241731383f89b2b65e80f3492c5dd2f0438c95cf')
|
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
|
|
|
|
rm "${pkgdir}/usr/share/bash-completion/completions"/{u,}mount
|
2010-05-22 06:07:29 +08:00
|
|
|
}
|