Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-25 14:51:29 +0200
committerErich Eckner <git@eckner.net>2018-06-25 14:51:29 +0200
commit3709cd8e3c3a6e85235d7f0cbbdf38a9d2086a78 (patch)
tree7c6d7292917eca66c08471c214a4e9a752801509 /bin
parentc129d26484f195e2ef99920da26ca9aceb379abe (diff)
bin/build-packages: purge multiple libav dependencies
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 4335d53..6c951dd 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -513,6 +513,16 @@ while [ "${count}" -ne 0 ] && \
' | \
sort -u > \
"${pkgfile}.so.needs"
+ sed -i '
+ /^\(libav.*\.so\)\.[0-9]\+$/ {
+ :a
+ N
+ s/^\(libav.*\.so\)\(\.[0-9]\+\)\?\n\1\.[0-9]\+$/\1/
+ t a
+ P
+ D
+ }
+ ' "${pkgfile}.so.needs"
find "${package_content_dir}/${pkgfile##*/}" \
-name 'opt' -prune , \
-exec objdump -x '{}' \; 2>/dev/null | \