From 3709cd8e3c3a6e85235d7f0cbbdf38a9d2086a78 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 25 Jun 2018 14:51:29 +0200 Subject: bin/build-packages: purge multiple libav dependencies --- bin/build-packages | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 | \ -- cgit v1.2.3-70-g09d2