aur/build.sh
nyyu 0650294b22
All checks were successful
continuous-integration/drone/push Build is passing
fix build
2021-05-19 10:08:46 +02:00

20 lines
387 B
Bash
Executable file

#!/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"
sudo -u build sh -c 'makepkg -s --skippgpcheck --noconfirm'
if [ $? -eq 0 ]; then
for pkg in *.pkg.tar.zst ; do
cp $pkg /repo/
repo-add /repo/nyyu.db.tar.zst /repo/$pkg
done
fi
cd ..
done