abinfo "Building iozone ..."
if [[ "${CROSS:-$ARCH}" = "amd64" ]]; then
    make linux-AMD64
elif [[ "${CROSS:-$ARCH}" = "armv4" || \
        "${CROSS:-$ARCH}" = "armv6hf" || \
        "${CROSS:-$ARCH}" = "armv7hf" ]]; then
    make linux-arm
elif [[ "${CROSS:-$ARCH}" = "ppc64el" || \
        "${CROSS:-$ARCH}" = "ppc64" ]]; then
    make linux-powerpc64
else
    make linux
fi

abinfo "Installing iozone ..."
install -Dvm755 "$SRCDIR"/{iozone,fileop,pit_server} \
    -t "$PKGDIR"/usr/bin/
