2018-08-16 05:32:59 +00:00
|
|
|
#!/hint/bash -euE
|
2018-08-09 21:38:54 +00:00
|
|
|
|
|
|
|
packages+=(
|
|
|
|
git
|
|
|
|
)
|
|
|
|
|
|
|
|
for pkgbuild in abs/*/PKGBUILD*; do
|
|
|
|
mapfile -t _depends < <(
|
|
|
|
cd "${pkgbuild%/*}"
|
|
|
|
sudo -u "#$(stat -c %u -- "${pkgbuild##*/}")" \
|
|
|
|
makepkg --printsrcinfo -p "${pkgbuild##*/}" \
|
|
|
|
| sed -nE -e 's/^\s+(|make|check)depends(|_\S*) = //p' -e '/^\s*pkgname/q'
|
|
|
|
)
|
|
|
|
cache_packages+=("${_depends[@]}")
|
|
|
|
done
|