import 'compile/configure' name=qemu version=2.10.1 define_option 'gtk3: Build with gtk3 support' define_option 'targets=all: Define what targets to build (space-separated list)' dlextract "http://download.qemu-project.org/$name-$version.tar.xz" \ '0c4d98038480c5c19a95990eb8d04a51' _ cd "$name-$version" targets="$(option =targets)" if [ "$targets" = "all" ]; then targets="" else targets="--target-list=$(echo "$targets" | sed -e 's/ /,/g')" fi gtkabi='' if option !gtk3; then gtkabi='--with-gtkabi=2.0' fi compile_configure -- $targets $gtkabi # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: