فهرست منبع

package/bash-completion: new package

Signed-off-by: Jeremy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
[Thomas: transfer the explanation from the commit log into the
Config.in help text, after rewording it.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Jeremy Rosen 7 سال پیش
والد
کامیت
989470cf14

+ 1 - 0
package/Config.in

@@ -1940,6 +1940,7 @@ comment "Shells"
 	source "package/zsh/Config.in"
 comment "Utilities"
 	source "package/at/Config.in"
+	source "package/bash-completion/Config.in"
 	source "package/ccrypt/Config.in"
 	source "package/crudini/Config.in"
 	source "package/dialog/Config.in"

+ 15 - 0
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

+ 3 - 0
package/bash-completion/bash-completion.hash

@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 c01f5570f5698a0dda8dc9cfb2a83744daa1ec54758373a6e349bd903375f54d  bash-completion-2.8.tar.xz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING

+ 16 - 0
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))