Este README etá disponível em pt-BR: Tradução pt-BR
Installing packages from the AUR when logged in as root on arch linux is sometimes a mess, especially if you are trying to do it when installing the system, whether manually or with a script. I created AUR Builder with the motivation of solving this problem, since for all the installations I do of arch, I create a script for them, and having to add some packages manually after installation is really annoying, the option beyond this installation system post-installation manual would be to add the code from this repository to my installation scripts, so I found it more practical to create a separate package for this.
Although the focus is on use during Arch installation, AUR Builder works very well for common use.
curl -L https://sirius-red.github.io/aurbuilder/install | sh
# Changing the root directory, change `/mnt` to the directory you want to use as root
curl -L https://sirius-red.github.io/aurbuilder/install | sh -s -- --chroot /mntgit clone https://github.com/sirius-red/aurbuilder.git --depth 1
cd aurbuilder
scripts/builder --production --installWhen trying to install a package, aurbuilder will use yay if it is installed, otherwise the installation will be done by cloning the AUR repository and installing with makepkg.
Just use the command below:
aurbuilder install <package_name>
# Installing multiple packages without confirmation messagens
aurbuilder i -y package1 package2 package3If you are using aurbuilder to install packages when installing Arch:
# Replace `/mnt` to the directory where you mounted the root partition
aurbuilder --chroot /mnt install -y <package_name>All necessary information is in the help command:
aurbuilder --helpBut if you want, follow the link to official documentation
Install the required dependencies:
- zip (install with your package manager)
- ruby (install with your package manager)
- shfmt (install with your package manager)
- bashly (Installation information in official documentation)
Read the bashly documentation first, you won't be able to do anything without knowing how it works.
Use bashly's watch mode to generate the binary as you save changes:
bashly generate --watchIn the scripts folder there is an auxiliary script to build the project (run it from the project root as shown below):
scripts/builder --help