aur/build.sh

18 lines
324 B
Bash
Raw Normal View History

2021-05-19 09:48:07 +02:00
#!/bin/bash
2021-05-19 09:54:28 +02:00
useradd build -m
echo '\nbuild ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
chown -R build:build *
2021-05-19 09:48:07 +02:00
for d in */ ; do
echo "$d"
cd "$d"
2021-05-19 09:54:28 +02:00
sudo -u build sh -c 'makepkg -s --skippgpcheck'
2021-05-19 09:48:07 +02:00
if [ $? -eq 0 ]; then
PKG=$(*.pkg.tar.zst)
cp $PKG /repo/
repo-add /repo/nyyu.db.tar.zst $PKG
fi
cd ..
done