import 'compile/configure' name=qemu version=2.8.1 update_url='http://www.qemu-project.org/download/' define_option 'targets=all: Define what targets to build (space-separated list)' dlextract "http://download.qemu-project.org/$name-$version.tar.xz" \ '1d8c7aed8cbc7d1a31c7eb78fd1b9875' header_end cd "$name-$version" targets="$(option =targets)" if [ "$targets" = "all" ]; then targets="" else targets="--target-list=$(echo "$targets" | sed -e 's/ /,/g')" fi compile_configure -- $targets # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: