Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-packages10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 4fb9d88..066ef24 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -576,8 +576,14 @@ while [ "${count}" -ne 0 ] && \
pacman -Qqlp "${pkgfile}" | \
sed -n '
s,^.*/,,
- /\.so\(\..\+\)\?$/p
- ' > \
+ /\.so\(\..\+\)\?$/ {
+ :a
+ p
+ s/\(\.so\(\..\+\)\?\)\.[^.]\+$/\1/
+ t a
+ }
+ ' | \
+ sort -u > \
"${pkgfile}.so.provides"
done
>&2 printf 'searching for required and more provided libraries\n'