From 7ec56895bfaf599d98006d364a036bd03f536e55 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 13 Aug 2023 10:47:03 +0200 Subject: [PATCH] feat: build sh --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..8574e16 --- /dev/null +++ b/build.sh @@ -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'