feat(os): For default AUR builds increase makepkg core use (#1)

This commit is contained in:
hygienic-books 2023-02-21 03:53:58 +01:00
parent 35dacb977c
commit 1290869dfe

View File

@ -370,6 +370,12 @@ function create_unpriv_user () {
chown -R "${account_name}"':' '/home/'"${account_name}"; chmod -R 'u=rwX,go=' "$(dirname "${authorized_keys_abs_path}")"
}
function unleash_makepkg () {
sed -ri \
-e 's'$'\x1''^(#?(MAKEFLAGS=))[^\r\n\f]*'$'\x1''\2"-j$(nproc --ignore 1)"'$'\x1''g' \
'/mnt/etc/makepkg.conf'
}
function get_aur_helper () {
create_unpriv_user 'build'
usermod --append --groups 'wheel' 'build'