Pkgconf build script

Taken from: https://github.com/apeiron/omnios-build/blob/master/build/pkgconf/build.sh