add aur build
This commit is contained in:
parent
108b4d59ca
commit
103a0b092e
@ -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
16
aur.txt
Normal 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
|
26
build.sh
26
build.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user