busybox-initramfs: fix for !x86_64.

This commit is contained in:
Juan RP 2010-05-11 12:17:30 +02:00
parent cc86812548
commit d90873d8dc

View file

@ -29,14 +29,19 @@ pre_build()
# It seems that gcc-4.5 generates a bad busybox binary,
# notably sed(1) segfaults on every command. Download a
# binary from busybox.net.
${XBPS_FETCH_CMD} \
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64
if [ "${xbps_machine}" = "x86_64" ]; then
${XBPS_FETCH_CMD} \
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64
fi
cp -f ${FILESDIR}/dotconfig ${wrksrc}/.config
}
post_install()
{
mv ${wrksrc}/busybox-x86_64 \
${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
if [ "${xbps_machine}" = "x86_64" ]; then
mv ${wrksrc}/busybox-x86_64 \
${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
fi
:
}