core.sh: handle the package splitting in PKGBUILD