makepkg: do not recurse into LIB_DIRS when looking for library provides

We should only find library provides in the configured directories, and
not their subdirectories.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2023-02-13 13:12:54 +10:00
parent 6c913af95d
commit 3323662ee0

View file

@ -35,7 +35,7 @@ library_provides() {
continue;
fi
mapfile -t filenames < <(find "$pkgdir/$dir" -type f | LC_ALL=C sort)
mapfile -t filenames < <(find "$pkgdir/$dir" -maxdepth 1 -type f | LC_ALL=C sort)
for fn in "${filenames[@]}"; do
# check we have a shared library