Skip to content
Snippets Groups Projects
Commit f837d33d authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

2.7-1: new upstream release

parent f7a35e17
No related branches found
No related tags found
No related merge requests found
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=bash-completion
pkgver=2.5
pkgver=2.7
pkgrel=1
pkgdesc="Programmable completion for the bash shell"
pkgdesc='Programmable completion for the bash shell'
arch=('any')
url="https://github.com/scop/bash-completion"
license=('GPL2')
depends=('bash')
options=('!emptydirs' '!makeflags')
source=("https://github.com/scop/bash-completion/releases/download/$pkgver/$pkgname-$pkgver.tar.xz")
sha1sums=('5bcd2c6b47bd147eda51eb4570e8926c40dba1f7')
url='https://github.com/scop/bash-completion'
license=(GPL2)
depends=(bash)
options=(!emptydirs !makeflags)
source=($url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz)
sha1sums=('2260342127086cfedd4801f796fdaaa051411a14')
build() {
cd ${pkgname}-${pkgver}
cd $pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# 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"
rm "$pkgdir/etc/profile.d/bash_completion.sh"
# remove Slackware's makepkg completion
rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
rm "$pkgdir/usr/share/bash-completion/completions/makepkg"
# remove completions which overlap with util-linux
rm "${pkgdir}/usr/share/bash-completion/completions"/{u,}mount
rm "$pkgdir/usr/share/bash-completion/completions"/{u,}mount
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment