feat: build sh
This commit is contained in:
parent
380e134ccd
commit
7ec56895bf
7
build.sh
Executable file
7
build.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
rm -rf pkg src *.patch *.h *.c
|
||||||
|
sed -i 's/# REPOSITORIES/[cachyos-testing-v3]\nServer = https:\/\/mirror.cachyos.org\/repo\/x86_64_v3\/\$repo/' /etc/pacman.conf
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
useradd build -m
|
||||||
|
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
sudo -u build sh -c '_nr_cpus=32 _NUMAdisable=y _use_llvm_lto=thin makepkg -s --noconfirm |& tee build.log'
|
Loading…
Reference in New Issue
Block a user