#!/bin/bash pacman -Syu --noconfirm useradd build -m echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers chown -R build:build . for d in */ ; do echo "$d" cd "$d" || continue if sudo -u build sh -c 'makepkg -s --skippgpcheck --noconfirm' ; then for pkg in *.pkg.tar.zst ; do cp "$pkg" /repo/ repo-add /repo/nyyu.db.tar.zst /repo/"$pkg" done fi cd .. done