summaryrefslogtreecommitdiff
path: root/pin-dependencies.PKGBUILDpatch
diff options
context:
space:
mode:
Diffstat (limited to 'pin-dependencies.PKGBUILDpatch')
-rw-r--r--pin-dependencies.PKGBUILDpatch24
1 files changed, 17 insertions, 7 deletions
diff --git a/pin-dependencies.PKGBUILDpatch b/pin-dependencies.PKGBUILDpatch
index 89902db2d..09e1be04a 100644
--- a/pin-dependencies.PKGBUILDpatch
+++ b/pin-dependencies.PKGBUILDpatch
@@ -3,13 +3,23 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
$(
{
printf '%s\n' "${depends[@]}"
- find "${pkgdir}" -type f -exec objdump -x {} \; 2>/dev/null \
- | sed '
- s/^\s*NEEDED\s\+\(\S\+\)\s*$/\1/
- t
- d
- ' \
- | sort -u \
+ {
+ find "${pkgdir}" -type f -exec objdump -x {} \; 2>/dev/null \
+ | sed '
+ s/^\s*NEEDED\s\+\(\S\+\)\s*$/\1/
+ t
+ d
+ ' \
+ | sort -u
+ printf '%s\n' "${depends[@]}" \
+ | sed '
+ s/[<>=].*$//
+ /\.so$/ !d
+ p
+ '
+ } \
+ | sort \
+ | uniq -u \
| while read -r _lib; do
pacman -Qqo "/usr/lib/${_lib}" 2>/dev/null || true
done \