Conversation

The makepkg tool does use fakeroot, and the more robust wrapper for it used in the devtools package runs it in a container to have a consistent, isolated build environment. There's a source and package audit tool (namcap) which devtools runs before/after to catch SOME issues.
1
That's how packages work on every traditional distribution though. They aren't isolated apps like an apk on Android. They get to install to every global directory and run arbitrary code in an install script. Installing to default bin / lib paths is arbitrary code exec anyway.
2
Needing an administrator to install packages globally that are in everyone's configuration / library / binary paths is a problem. It should be possible to install a package only for a specific user, even without having support for properly sandboxing everything.
1
2