2021-05-19 09:48:07 +02:00
|
|
|
#!/bin/bash
|
2021-05-19 09:59:59 +02:00
|
|
|
|
2021-05-19 11:26:24 +02:00
|
|
|
build() {
|
2021-05-19 12:16:23 +02:00
|
|
|
name=$(grep '^pkgname=' PKGBUILD | cut -d'=' -f2)
|
|
|
|
ver=$(grep '^pkgver=' PKGBUILD | cut -d'=' -f2)
|
|
|
|
rel=$(grep '^pkgrel=' PKGBUILD | cut -d'=' -f2)
|
2021-05-19 12:24:22 +02:00
|
|
|
epoch=$(grep '^epoch=' PKGBUILD | cut -d'=' -f2)
|
|
|
|
if [ -n "$epoch" ] ; then
|
|
|
|
epoch=$epoch:
|
|
|
|
fi
|
2021-05-19 11:53:25 +02:00
|
|
|
|
2021-05-19 12:24:22 +02:00
|
|
|
if ! compgen -G "/repo/$name-$epoch$ver-$rel-*.pkg.tar.zst" ; then
|
2021-05-19 12:03:41 +02:00
|
|
|
if makepkg -s --skippgpcheck --noconfirm || makepkg -s --skippgpcheck --nocheck --noconfirm ; then
|
2021-05-19 11:53:25 +02:00
|
|
|
for pkg in *.pkg.tar.zst ; do
|
|
|
|
cp "$pkg" /repo/
|
|
|
|
repo-add /repo/nyyu.db.tar.zst /repo/"$pkg"
|
|
|
|
done
|
|
|
|
fi
|
2021-05-19 09:48:07 +02:00
|
|
|
fi
|
2021-05-19 11:26:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for d in */ ; do
|
|
|
|
echo "$d"
|
|
|
|
cd "$d" || continue
|
|
|
|
build
|
2021-05-19 09:48:07 +02:00
|
|
|
cd ..
|
|
|
|
done
|
2021-05-19 11:26:24 +02:00
|
|
|
|
|
|
|
while read -r p; do
|
|
|
|
echo "$p"
|
|
|
|
git clone https://aur.archlinux.org/"$p".git || continue
|
|
|
|
cd "$p" || continue
|
|
|
|
build
|
|
|
|
cd ..
|
|
|
|
done <aur.txt
|