blob: 19bc81619f7e0dec99a8c8db0c0ac1860d8fa9f6 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Programmable Completion for Bash 4"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "Collection of command line command completions for the Bash shell, \
3collection of helper functions to assist in creating new completions, \
4and set of facilities for loading completions automatically on demand, as well \
5as installing them."
6
Andrew Geissler6ce62a22020-11-30 19:58:47 -06007HOMEPAGE = "https://github.com/scop/bash-completion"
8BUGTRACKER = "https://github.com/scop/bash-completion/issues"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000010LICENSE = "GPL-2.0-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
12
13SECTION = "console/utils"
14
Andrew Geissler87f5cff2022-09-30 13:13:31 -050015SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
Andrew Geissler635e0e42020-08-21 15:58:33 -050017SRC_URI[md5sum] = "2514c6772d0de6254758b98c53f91861"
18SRC_URI[sha256sum] = "73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050019GITHUB_BASE_URI = "https://github.com/scop/bash-completion/releases"
Andrew Geissler82c905d2020-04-13 13:39:40 -050020
21PARALLEL_MAKE = ""
22
Andrew Geissler87f5cff2022-09-30 13:13:31 -050023inherit autotools github-releases
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
Patrick Williams213cb262021-08-07 19:21:33 -050025do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050026 # compatdir
27 install -d ${D}${sysconfdir}/bash_completion.d/
28 echo '. ${datadir}/${BPN}/bash_completion' >${D}${sysconfdir}/bash_completion
29
30}
31
Patrick Williams213cb262021-08-07 19:21:33 -050032RDEPENDS:${PN} = "bash"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033
34# Some recipes are providing ${PN}-bash-completion packages
35PACKAGES =+ "${PN}-extra"
Patrick Williams213cb262021-08-07 19:21:33 -050036FILES:${PN}-extra = "${datadir}/${BPN}/completions/ \
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 ${datadir}/${BPN}/helpers/"
38
Andrew Geissler82c905d2020-04-13 13:39:40 -050039BBCLASSEXTEND = "nativesdk"