From b3ccc4e7cbe8a7f174ca7fe08cad768b80f1dd25 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 17 Nov 2009 13:09:07 +0000 Subject: bzip2: Use do_install for staging Signed-off-by: Richard Purdie --- meta/packages/bzip2/bzip2_1.0.5.bb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'meta') diff --git a/meta/packages/bzip2/bzip2_1.0.5.bb b/meta/packages/bzip2/bzip2_1.0.5.bb index 47769e3cc..2b57a2e14 100644 --- a/meta/packages/bzip2/bzip2_1.0.5.bb +++ b/meta/packages/bzip2/bzip2_1.0.5.bb @@ -18,15 +18,12 @@ do_configure_prepend () { } do_install_append () { - mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN} - mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN} + if [ "${BUILD_ARCH}" != "${HOST_ARCH}" ]; then + 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} () { update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100 update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100 -- cgit v1.2.3