blob: f63a69b5b4e95e4c668aaa3767d32f9fe88053aa [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
10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
12
13SECTION = "console/utils"
14
15SRC_URI = "https://github.com/scop/bash-completion/releases/download/${PV}/${BPN}-${PV}.tar.xz"
16
Andrew Geissler635e0e42020-08-21 15:58:33 -050017SRC_URI[md5sum] = "2514c6772d0de6254758b98c53f91861"
18SRC_URI[sha256sum] = "73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019UPSTREAM_CHECK_REGEX = "bash-completion-(?P<pver>(?!2008).+)\.tar"
20UPSTREAM_CHECK_URI = "https://github.com/scop/bash-completion/releases"
21
22PARALLEL_MAKE = ""
23
24inherit autotools
25
Patrick Williams213cb262021-08-07 19:21:33 -050026do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 # compatdir
28 install -d ${D}${sysconfdir}/bash_completion.d/
29 echo '. ${datadir}/${BPN}/bash_completion' >${D}${sysconfdir}/bash_completion
30
31}
32
Patrick Williams213cb262021-08-07 19:21:33 -050033RDEPENDS:${PN} = "bash"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034
35# Some recipes are providing ${PN}-bash-completion packages
36PACKAGES =+ "${PN}-extra"
Patrick Williams213cb262021-08-07 19:21:33 -050037FILES:${PN}-extra = "${datadir}/${BPN}/completions/ \
Andrew Geissler82c905d2020-04-13 13:39:40 -050038 ${datadir}/${BPN}/helpers/"
39
Andrew Geissler82c905d2020-04-13 13:39:40 -050040BBCLASSEXTEND = "nativesdk"