Optimize pkgver() and dependencies