mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
bd9f0021d2
- bash-completion: remove duplicate part in util-linux - util-linux: update and build against new ncurses group
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
pkgname=bash-completion
|
|
pkgver=2.4
|
|
pkgrel=2
|
|
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=('c0f76b5202fec9ef8ffba82f5605025ca003f27cfd7a85115f838ba5136890f6')
|
|
|
|
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
|
|
}
|