diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 13:09:07 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 13:09:07 +0000 |
commit | b3ccc4e7cbe8a7f174ca7fe08cad768b80f1dd25 (patch) | |
tree | 4075f09b193cd37899cbd8d54e1740b2a5062955 /meta/packages/bzip2 | |
parent | bf7547778ecbfc4351b59017f9377cc915d0653b (diff) | |
download | poky-b3ccc4e7cbe8a7f174ca7fe08cad768b80f1dd25.tar.gz |
bzip2: Use do_install for staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/bzip2')
-rw-r--r-- | meta/packages/bzip2/bzip2_1.0.5.bb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/packages/bzip2/bzip2_1.0.5.bb b/meta/packages/bzip2/bzip2_1.0.5.bb index 47769e3ccd..2b57a2e14f 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 () { | |||
18 | } | 18 | } |
19 | 19 | ||
20 | do_install_append () { | 20 | do_install_append () { |
21 | mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN} | 21 | if [ "${BUILD_ARCH}" != "${HOST_ARCH}" ]; then |
22 | mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN} | 22 | mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN} |
23 | mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN} | ||
24 | fi | ||
23 | } | 25 | } |
24 | 26 | ||
25 | do_stage () { | ||
26 | install -m 0644 bzlib.h ${STAGING_INCDIR}/ | ||
27 | oe_libinstall -a -so libbz2 ${STAGING_LIBDIR} | ||
28 | } | ||
29 | |||
30 | pkg_postinst_${PN} () { | 27 | pkg_postinst_${PN} () { |
31 | update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100 | 28 | update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100 |
32 | update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100 | 29 | update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100 |