Shell Script to boost AUR building time
This script will check declared parameters in:
/etc/makepkg.conf
(by default [none] parameter)/usr/bin/makepkg
and change them for more efficient to speed up compiling AUR packages.
user@host:~# sudo ./aur-boost.sh --help
Script to boost AUR building time (script supports short names for parameters)
Using script:
aur-boost.sh [--config|--package|--install|--all|--help]
config - rewrite config file "/etc/makepkg.conf" (this is default [none] parameter)
package - rewrite package file "/usr/bin/makepkg" (it can be HARMFUL)
install - install most common dependencies required for building process of many AUR packages
all - rewrite both, config and package files and install deps (it can be HARMFUL)
help - get this message
user@host:~# sudo ./aur-boost.sh --status
Current value in "/etc/makepkg.conf": "CFLAGS="-march=native -O2 -pipe -fno-plt -fexceptions \"
Current value in "/etc/makepkg.conf": "MAKEFLAGS="-j$(nproc)""
Current value in "/etc/makepkg.conf": "BUILDDIR=/tmp/makepkg"
Current value in "/etc/makepkg.conf": "COMPRESSZST=(zstd -1 -c -z -q -)"
Current value in "/usr/bin/makepkg": "SKIPCHECKSUMS=1"
Current value in "/usr/bin/makepkg": "SKIPPGPCHECK=1"
(downloads with wget
or curl
to /tmp
)
wget 'https://raw.githubusercontent.com/emilwojcik93/aur-boost/main/aur-boost.sh' -O "/tmp/aur-boost.sh" && chmod 755 "/tmp/aur-boost.sh" && sudo /tmp/aur-boost.sh
wget --no-check-certificate 'https://raw.githubusercontent.com/emilwojcik93/aur-boost/main/aur-boost.sh' -O "/tmp/aur-boost.sh" && chmod 755 "/tmp/aur-boost.sh" && sudo /tmp/aur-boost.sh
curl --proto '=https' --tlsv1.2 -sSfL 'https://raw.githubusercontent.com/emilwojcik93/aur-boost/main/aur-boost.sh' -o "/tmp/aur-boost.sh" && chmod 755 "/tmp/aur-boost.sh" && sudo /tmp/aur-boost.sh
curl -k -L 'https://raw.githubusercontent.com/emilwojcik93/aur-boost/main/aur-boost.sh' -o "/tmp/aur-boost.sh" && chmod 755 "/tmp/aur-boost.sh" && sudo /tmp/aur-boost.sh
Clone it in current directory and execute aur-boost.sh
git clone [email protected]:emilwojcik93/aur-boost.git
cd aur-boost
sudo ./aur-boost.sh
Relevant links: