core/bash-completion/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

2010-05-22 06:07:29 +08:00
pkgname=bash-completion
2016-04-19 08:14:45 +08:00
pkgver=2.3
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-04-19 08:14:45 +08:00
source=("https://github.com/scop/bash-completion/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"
'bash-4.3.patch')
sha256sums=('b2e081af317f3da4fff3a332bfdbebeb5514ebc6c2d2a9cf781180acab15e8e9'
'9092e6ac975bf43e9ec672477e4e21ca5b0bf52ca5d4e22ec71962ff2a195a5b')
2014-09-23 00:51:29 +08:00
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../bash-4.3.patch
}
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
2014-09-23 00:51:29 +08:00
# bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it
rm "${pkgdir}/etc/profile.d/bash_completion.sh"
# remove Slackware's makepkg completion
2012-09-10 02:31:30 +08:00
rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
2010-05-22 06:07:29 +08:00
}