Instead of relying on qtchooser to provide the link to the qmake binary for Qt4 or Qt5 test for either version and use that. Sometimes qtchooser can fail if e.g. a package was built with Qt4 and after that another package with Qt5 without zapping the masterdir.
BUILD STYLES ============ These shell snippets provide support for multiple build systems, i.e GNU configure, CMake, etc. A build style file must provide at least the following functions: - do_configure - do_build - do_install If a source package defines its own do_xxx() function, the function defined in the build style file is simply ignored.