diff options
-rw-r--r-- | advertise-provided-libraries.PKGBUILDpatch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/advertise-provided-libraries.PKGBUILDpatch b/advertise-provided-libraries.PKGBUILDpatch index fd3700b0a..392c321ef 100644 --- a/advertise-provided-libraries.PKGBUILDpatch +++ b/advertise-provided-libraries.PKGBUILDpatch @@ -1,7 +1,9 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then - provides+=( - $( - find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n' + if [ -d "${pkgdir}/usr/lib" ]; then + provides+=( + $( + find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n' + ) ) - ) + fi fi |