add aur build
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
nyyu 2021-05-19 11:26:24 +02:00
parent 108b4d59ca
commit 103a0b092e
3 changed files with 37 additions and 11 deletions

View File

@ -9,7 +9,11 @@ steps:
- name: repo
path: /repo
commands:
- ./build.sh
- pacman -Syu git --noconfirm
- useradd build -m
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- chown -R build:build .
- sudo -u build sh -c './build.sh'
volumes:
- name: repo

16
aur.txt Normal file
View File

@ -0,0 +1,16 @@
apache-tools
bottom
cpufetch-git
drone-cli
duf
inxi
iprange
megatools
oh-my-zsh-git
ookla-speedtest-bin
pyload-git
python2-pycurl
shellcheck-bin
systemd-boot-pacman-hook
yay
zenpower-dkms

View File

@ -1,19 +1,25 @@
#!/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
build() {
if 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
}
for d in */ ; do
echo "$d"
cd "$d" || continue
build
cd ..
done
while read -r p; do
echo "$p"
git clone https://aur.archlinux.org/"$p".git || continue
cd "$p" || continue
build
cd ..
done <aur.txt