refactoring, pkgbuild