diff --git a/setup.sh b/setup.sh index a3a97a8..c66e480 100644 --- a/setup.sh +++ b/setup.sh @@ -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'