mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 23:59:02 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
pkgname=bash-completion
|
|
pkgver=2.5
|
|
pkgrel=1
|
|
pkgdesc="Programmable completion for the bash shell"
|
|
arch=('any')
|
|
url="https://github.com/scop/bash-completion"
|
|
license=('GPL2')
|
|
depends=('bash')
|
|
options=('!emptydirs' '!makeflags')
|
|
#http://bash-completion.alioth.debian.org/files/${pkgname}-${pkgver}.tar.bz2
|
|
source=("https://github.com/scop/bash-completion/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
|
sha256sums=('b0b9540c65532825eca030f1241731383f89b2b65e80f3492c5dd2f0438c95cf')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
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"
|
|
|
|
# remove Slackware's makepkg completion
|
|
rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
|
|
|
|
# remove completions which overlap with util-linux
|
|
rm "${pkgdir}/usr/share/bash-completion/completions"/{u,}mount
|
|
}
|