Here's the working version of PKGBUILD.