summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-05-06 10:35:34 +0200
committerErich Eckner <git@eckner.net>2020-05-06 10:35:34 +0200
commit9ef576d11e1fb4407f059af9421289ec80e05622 (patch)
treec6cb8c68249e66a6f922f5cb56fc7a014d553f84
parente25fa8a44c98b460a4a0cce52741dfe63ffc969c (diff)
downloadarchlinuxewe-9ef576d11e1fb4407f059af9421289ec80e05622.tar.xz
advertise-provided-libraries.PKGBUILDpatch: do nothing if /usr/lib does not exist
-rw-r--r--advertise-provided-libraries.PKGBUILDpatch10
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