2020-06-29 15:46:11 -05:00
|
|
|
# Description: Programmable completion functions for bash
|
|
|
|
# URL: https://github.com/scop/bash-completion
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2010-09-01 07:38:51 +00:00
|
|
|
# Depends on: bash
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=bash-completion
|
2020-08-24 12:09:59 -05:00
|
|
|
version=2.11
|
2020-06-29 15:46:11 -05:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/scop/$name/releases/download/$version/$name-$version.tar.xz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2020-06-29 15:46:11 -05:00
|
|
|
cd $name-$version
|
2011-11-08 12:20:22 +01:00
|
|
|
|
2020-06-29 15:46:11 -05:00
|
|
|
sed -i -e 's,profiledir = .*,profiledir = /etc,g' Makefile.*
|
2011-11-08 17:56:21 +01:00
|
|
|
|
2020-06-29 15:46:11 -05:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc
|
2011-11-08 12:20:22 +01:00
|
|
|
|
2020-06-29 15:46:11 -05:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2011-11-08 17:56:21 +01:00
|
|
|
|
2020-06-29 15:46:11 -05:00
|
|
|
mv $PKG/etc/bash_completion{.sh,}
|
|
|
|
chmod 0755 $PKG/usr/share/$name/bash_completion
|
2013-04-15 15:03:25 +02:00
|
|
|
|
2020-06-29 15:46:11 -05:00
|
|
|
# remove package tools intended for other distributions which
|
|
|
|
# do not exist in CRUX
|
|
|
|
rm $PKG/usr/share/$name/completions/{apt-*,aptitude,dpkg*}
|
|
|
|
rm $PKG/usr/share/$name/completions/{explode,install,make,remove,sbo,slack,upgrade}pkg
|
|
|
|
rm $PKG/usr/share/$name/completions/{pkg-get,pkg_*,pkg{add,rm,tool,util},slapt-*}
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|