aur/build.sh
nyyu 3d0713d088
All checks were successful
continuous-integration/drone/push Build is passing
no check if fail
2021-05-19 12:03:41 +02:00

32 lines
694 B
Bash
Executable File

#!/bin/bash
build() {
name=$(grep 'pkgname=' PKGBUILD | cut -d'=' -f2)
ver=$(grep 'pkgver=' PKGBUILD | cut -d'=' -f2)
rel=$(grep 'pkgrel=' PKGBUILD | cut -d'=' -f2)
if ! compgen -G "/repo/$name-$ver-$rel-*.pkg.tar.zst" ; then
if makepkg -s --skippgpcheck --noconfirm || makepkg -s --skippgpcheck --nocheck --noconfirm ; then
for pkg in *.pkg.tar.zst ; do
cp "$pkg" /repo/
repo-add /repo/nyyu.db.tar.zst /repo/"$pkg"
done
fi
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