Shell one-liner for downloading the source code of the latest QEMU release and extracting it in qemu
directory:
wget -O qemu.tar.xz -c --quiet \
"https://download.qemu.org/$(wget -O - --quiet https://download.qemu.org/ | \
grep -v '\-rc\|sig' | grep 'tar.xz' | tail -1 | \
sed 's/^.*href="\([^"]*\).*$/\1/')" && \
mkdir qemu && \
tar xf qemu.tar.xz -C qemu --strip-components=1 && \
rm qemu.tar.xz