[arch-projects] [devtools] makechrootpkg: Keep everything inside of a function