blob: f519b3f3da4b1e4cd951a001df510ddada6cc034 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "Programmable Completion for Bash 4"
2HOMEPAGE = "http://bash-completion.alioth.debian.org/"
3BUGTRACKER = "https://alioth.debian.org/projects/bash-completion/"
4
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7
8SECTION = "console/utils"
9
10SRC_URI = "https://github.com/scop/bash-completion/releases/download/${PV}/${BPN}-${PV}.tar.xz"
11
12SRC_URI[md5sum] = "28117492bdc9408438e6041683a423ce"
13SRC_URI[sha256sum] = "41ba892d3f427d4a686de32673f35401bc947a7801f684127120cdb13641441e"
14UPSTREAM_CHECK_REGEX = "bash-completion-(?P<pver>(?!2008).+)\.tar"
15UPSTREAM_CHECK_URI = "https://github.com/scop/bash-completion/releases"
16
17PARALLEL_MAKE = ""
18
19inherit autotools
20
21do_install_append() {
22 # compatdir
23 install -d ${D}${sysconfdir}/bash_completion.d/
24 echo '. ${datadir}/${BPN}/bash_completion' >${D}${sysconfdir}/bash_completion
25
26 # Delete files already provided by util-linux
27 local i
28 for i in mount umount rfkill; do
29 rm ${D}${datadir}/${BPN}/completions/$i
30 done
31}
32
33RDEPENDS_${PN} = "bash"
34
35# Some recipes are providing ${PN}-bash-completion packages
36PACKAGES =+ "${PN}-extra"
37FILES_${PN}-extra = "${datadir}/${BPN}/completions/ \
38 ${datadir}/${BPN}/helpers/"
39
40FILES_${PN}-dev += "${datadir}/cmake"
41
42BBCLASSEXTEND = "nativesdk"