From 272f33914d677e35bb4f07f7786216dce89d32a8 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 18 Feb 2022 19:11:11 +0000 Subject: [PATCH] extra/ffmpeg4.4 to 4.4.1-4 --- extra/ffmpeg4.4/PKGBUILD | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/extra/ffmpeg4.4/PKGBUILD b/extra/ffmpeg4.4/PKGBUILD index ab21bae87..b23b225fd 100644 --- a/extra/ffmpeg4.4/PKGBUILD +++ b/extra/ffmpeg4.4/PKGBUILD @@ -16,7 +16,7 @@ pkgname=ffmpeg4.4 pkgver=4.4.1 -pkgrel=1 +pkgrel=4 pkgdesc='Complete solution to record, convert and stream audio and video' arch=(x86_64) url=https://ffmpeg.org/ @@ -175,9 +175,20 @@ build() { package() { make DESTDIR="${pkgdir}" -C ffmpeg install - rm -rf "${pkgdir}"/usr/share - install -dm 755 "${pkgdir}"/etc/ld.so.conf.d - echo '/usr/lib/ffmpeg4.4' > "${pkgdir}"/etc/ld.so.conf.d/ffmpeg4.4.conf + + cd "${pkgdir}" + + # Move libs to /usr/lib, except the .so symlinks + local f + for f in usr/lib/ffmpeg4.4/*; do + if [[ $f == *.so ]]; then + ln -srf -- usr/lib/"$(readlink "$f")" "$f" + elif [[ ! -d $f ]]; then + mv "$f" usr/lib + fi + done + + rm -r usr/share } -# vim: ts=2 sw=2 et: +# vim:set sw=2 et: