PKGBUILD calls the pthreads master which is for PHP7 and not PHP5. I edited the PKGBUILD file to get it to compile by changing:
source=(git://github.com/krakjoe/pthreads.git#branch=master)
to
source=(git://github.com/krakjoe/pthreads.git#branch=PHP5)
Gearhead