mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
bzip2: Use do_install for staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -18,15 +18,12 @@ do_configure_prepend () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN}
|
if [ "${BUILD_ARCH}" != "${HOST_ARCH}" ]; then
|
||||||
mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN}
|
mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN}
|
||||||
|
mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_stage () {
|
|
||||||
install -m 0644 bzlib.h ${STAGING_INCDIR}/
|
|
||||||
oe_libinstall -a -so libbz2 ${STAGING_LIBDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100
|
update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100
|
||||||
update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100
|
update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100
|
||||||
|
|||||||
Reference in New Issue
Block a user