package() function; use $pkgbase