patched with pkgbuild