32 lines
694 B
Bash
Executable File
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
|