Qjoypad doesn't compile due to not being linked against X11. This was pointed out in the comments: cd src/qjoypad-4.1.0/src g++ -m64 -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o qjoypad axis.o axis_edit.o axisw.o button.o button_edit.o buttonw.o event.o flash.o icon.o joypad.o joypadw.o joyslider.o keycode.o layout.o layout_edit.o main.o quickset.o getkey.o moc_axis.o moc_axis_edit.o moc_button.o moc_button_edit.o moc_flash.o moc_icon.o moc_joypad.o moc_joypadw.o moc_keycode.o moc_layout.o moc_getkey.o moc_layout_edit.o -L/usr/lib -lXtst -lQtGui -lQtCore -lpthread -lX11 #I just added X11 to be linked makepkg should now be able to finish. I don't know how robust this solution is.... :/ Please update the pkgbuild to do this.