added prepare() and fixed pkgver()