diff options
author | Stéphane Cerveau <scerveau@gmail.com> | 2019-08-27 22:09:55 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-08-27 22:09:55 +0000 |
commit | 308d27da7b2cf6132acc000a3ec0971512d71baf (patch) | |
tree | 7dec469d63ddb4db23a7cf088a338da38be07956 /recipes/bash-completion.recipe | |
parent | 41fc95540737ea4f0e792a7d62b346b12d6a8705 (diff) |
bash-completion: add support for recipe scripts
Define the scripts in the recipe with bash_completion
member variable to be sourced in shell command.
Add gst-inspect-1.0 and gst-launch-1.0 bash completion
support from gstreamer-1.0 recipe.
Diffstat (limited to 'recipes/bash-completion.recipe')
-rw-r--r-- | recipes/bash-completion.recipe | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/bash-completion.recipe b/recipes/bash-completion.recipe new file mode 100644 index 00000000..8d27b7d5 --- /dev/null +++ b/recipes/bash-completion.recipe @@ -0,0 +1,14 @@ +# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python +from cerbero.tools.libtool import LibtoolLibrary + +class Recipe(recipe.Recipe): + name = 'bash-completion' + version = '2.9' + licenses = [License.GPLv2Plus] + stype = SourceType.TARBALL + url = 'https://github.com/scop/bash-completion/releases/download/2.9/%(name)s-%(version)s.tar.xz' + tarball_checksum = 'd48fe378e731062f479c5f8802ffa9d3c40a275a19e6e0f6f6cc4b90fa12b2f5' + + def prepare(self): + if self.config.target_platform not in [Platform.LINUX]: + raise InvalidRecipeError(self, "Invalid platform") |