pacmoon is a tool for compiling Arch Linux packages using custom make flags from /etc/makepkg.conf. It keeps track of which files have been compiled so that in the event of compiled packages getting replaced with a binary (like during an upgrade process), pacmoon can recompile only the necessary packages.