mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 20:14:38 +08:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
pkgname=bash-completion
|
|
pkgver=2.3
|
|
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"
|
|
'bash-4.3.patch')
|
|
sha256sums=('b2e081af317f3da4fff3a332bfdbebeb5514ebc6c2d2a9cf781180acab15e8e9'
|
|
'9092e6ac975bf43e9ec672477e4e21ca5b0bf52ca5d4e22ec71962ff2a195a5b')
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
patch -p1 -i ../bash-4.3.patch
|
|
}
|
|
|
|
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"
|
|
}
|