QEMU 3.1.0/4.0.0 Build Scripts for CentOS & Debian/Ubuntu
Execute qemu-centos-buildscript.sh script. RPM file will be in your home directory.
Execute qemu-debian-buildscript.sh script. When it gets to the checkinstall part, add a description for the package then a blank line then enter. Change the conflicts to be qemu-kvm then enter to build. Debian package file will be in your home directory.