From af420e543b54899a410d3c7e692a1902083e33c3 Mon Sep 17 00:00:00 2001 From: Daniel Bermond Date: Mon, 1 Dec 2025 21:34:12 -0300 Subject: [PATCH] Remove unneeded entries from libavfilter.pc The stagingdir entries are added by the upstream build system due to linking to lensfun and whisper.cpp static libraries. All these entries can be removed, alongside with the libraries themselves. --- PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index c6e0787..a0c10e3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -405,4 +405,9 @@ package() { make -C "ffmpeg-${pkgver}" DESTDIR="$pkgdir" install install -D -m755 "ffmpeg-${pkgver}/tools/qt-faststart" -t "${pkgdir}/usr/bin" install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + sed -i \ + -e 's|-llensfun ||' \ + -e 's|-lwhisper ||' \ + -e "s|-L${srcdir}/staging/lib ||g" \ + "${pkgdir}/usr/lib/pkgconfig/libavfilter.pc" }