This commit is contained in:
parent
ec82060c85
commit
f0b30ab439
1 changed files with 5 additions and 1 deletions
6
build.sh
6
build.sh
|
@ -1,9 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
useradd build -m
|
||||
echo '\nbuild ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
chown -R build:build *
|
||||
|
||||
for d in */ ; do
|
||||
echo "$d"
|
||||
cd "$d"
|
||||
makepkg -s --skippgpcheck
|
||||
sudo -u build sh -c 'makepkg -s --skippgpcheck'
|
||||
if [ $? -eq 0 ]; then
|
||||
PKG=$(*.pkg.tar.zst)
|
||||
cp $PKG /repo/
|
||||
|
|
Loading…
Add table
Reference in a new issue