diff --git a/srcpkgs/busybox-initramfs/template b/srcpkgs/busybox-initramfs/template index f2eecce9ec..5e251f0b22 100644 --- a/srcpkgs/busybox-initramfs/template +++ b/srcpkgs/busybox-initramfs/template @@ -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 + : }