Updated the pkgver() function and pkgver variable.