updated pkgver function
fixed dependencies