On my system the script src/config stops with message: "Error: you need qmake!", although i have qmake-qt4 installed. The reason is the test:
...
if ( ! qmake ); then
echo "Error: you need qmake!";
exit 1;
fi;
...
(no qmake-qt4 mentioned, although fallback to qmake-qt4 is written below in the script).
I change the condition to
...
if ( ! qmake && ! qmake-qt4 ); then
...
and it works.
Also, i'm the maintainer of qjoypad package (http://git.altlinux.org/people/yushi/packages/qjoypad.git) in Alt Linux (http://en.altlinux.org/Main_Page), and while packaging another small bug was found. In Alt package build system (RPM-based) the ${installdir} folder (say, ~/tmp/qjoypad-buildroot/) does NOT exist on the configuring stage. So the check
...
if [[ ! -d $installdir ]]
...
fails. I presume, this issue may occur also for other RPM-based distributions, including less esoteric than Alt.
Path with my fixes for this two small issues attached.
Sorry for my poor English, my native language is Russian.