This is basically a follow-up from this thread: Add specific header to bitbake wget fetcher
I override do_fetch to set a specific header and store the archive in ${DL_DIR}/${PN}.zip. The do_unpack job doesn't unpack that archive automatically. So I override do_unpack as follows:
do_unpack () {
bbnote "unpacking"
unzip -q -o ${DL_DIR}/${PN}.zip -d ${S}
}
If I execute: bitbake my_recipe bitbake complains that it can't find unzip:
run.do_unpack.20659: unzip: not found
I have DEPENDS = "unzip-native" in my recipe.
Thanks again a lot in advance