makepkg(8) - Arch Linux
https://archlinux.org/pacman/makepkg.8.htmlThe advantage to a script-based build is that the work is only done once. Once you have the build script for a package, makepkg will do the rest: download and validate source files, check dependencies, configure the build-time settings, build the package, install the package into a temporary root, make customizations, generate meta-info, and package the whole thing up for …