summaryrefslogtreecommitdiffstats
path: root/package/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'package/bash-completion')
-rw-r--r--package/bash-completion/Config.in15
-rw-r--r--package/bash-completion/bash-completion.hash3
-rw-r--r--package/bash-completion/bash-completion.mk16
3 files changed, 34 insertions, 0 deletions
diff --git a/package/bash-completion/Config.in b/package/bash-completion/Config.in
new file mode 100644
index 0000000000..c907c04a54
--- /dev/null
+++ b/package/bash-completion/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_BASH_COMPLETION
+ bool "bash completion"
+ depends on BR2_PACKAGE_BASH
+ help
+ Add bash completion infrastructure.
+
+ The bash completion infrastructure is enabled by
+ /etc/profile.d/bash_completion.sh, which is normally
+ sourced by /etc/profile.
+
+ If the system does not use the /etc/profile.d directory
+ mechanism, the /etc/profile.d/bash_completion.sh script can
+ be sourced from /etc/bashrc or ~/.bashrc.
+
+ https://github.com/scop/bash-completion
diff --git a/package/bash-completion/bash-completion.hash b/package/bash-completion/bash-completion.hash
new file mode 100644
index 0000000000..2c4cf67578
--- /dev/null
+++ b/package/bash-completion/bash-completion.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 c01f5570f5698a0dda8dc9cfb2a83744daa1ec54758373a6e349bd903375f54d bash-completion-2.8.tar.xz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
diff --git a/package/bash-completion/bash-completion.mk b/package/bash-completion/bash-completion.mk
new file mode 100644
index 0000000000..9976918648
--- /dev/null
+++ b/package/bash-completion/bash-completion.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# bash-completion
+#
+################################################################################
+
+BASH_COMPLETION_VERSION = 2.8
+BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION)
+BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz
+BASH_COMPLETION_LICENSE = GPL-2.0
+BASH_COMPLETION_LICENSE_FILES = COPYING
+
+# Install bash-completion.pc file
+BASH_COMPLETION_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud