diff --git a/blendos-repo-automation.sh b/blendos-repo-automation.sh index 3e893ec..301bc2e 100755 --- a/blendos-repo-automation.sh +++ b/blendos-repo-automation.sh @@ -4,15 +4,37 @@ echo ' SigLevel = Optional Server = https://askiiart.net/repos/archlinux/$arch' | sudo tee -a /etc/pacman.conf -sudo pacman -Sy +sudo pacman -Syu --noconfirm --needed -sudo mkdir /var/log/makepkg/ -sudo chown builder /var/log/makepkg/ -chmod -R 777 /var/log/makepkg/ -mkdir /tmp/arch-workdir/ +prep() { + sudo mkdir /var/log/makepkg/ + sudo chown builder /var/log/makepkg/ + chmod -R 777 /var/log/makepkg/ -echo "PKGDEST=/repo/ + echo "PKGDEST=/repo/ LOGDEST=/var/log/makepkg/" >~/.makepkg.conf + echo '[multilib] +Include = /etc/pacman.d/mirrorlist + +[askiiart] +Server = https://askiiart.net/repos/archlinux/$arch +SigLevel = Optional' | sudo tee -a /etc/pacman.conf + sudo pacman -Sy + mkdir /tmp/arch-workdir/ + chmod -R 777 /tmp/arch-workdir/ +} + +build_aur_package() { + cd /tmp/arch-workdir/ + mkdir ./$1 + cd ./$1 + zbuilder.sh $1 + rm -rf ~/source +} + +prep + +build_aur_package 'paru' cd /tmp/arch-workdir git clone https://git.askiiart.net/askiiart-blendos/akshara