# Note: depends on cmake
# Note: depends on qtx11extras
# Note: depends on qttools
wget -c https://github.com/panzi/qjoypad/archive/v4.3.1/qjoypad-4.3.1.tar.gz
tar -xzf qjoypad-4.3.1.tar.gz
cd qjoypad-4.3.1
sed -i -e 's/<QX11Info>/<qx11info_x11.h>/' src/event.cpp src/keycode.cpp
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make # Doesn't mind -j#
make install