[arch-commits] Commit in ffmpeg4.4/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Fri Feb 18 07:48:38 UTC 2022
Date: Friday, February 18, 2022 @ 07:48:36
Author: heftig
Revision: 437659
4.4.1-4: replace ld.so conf with moving files
Modified:
ffmpeg4.4/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-18 06:07:16 UTC (rev 437658)
+++ PKGBUILD 2022-02-18 07:48:36 UTC (rev 437659)
@@ -6,7 +6,7 @@
pkgname=ffmpeg4.4
pkgver=4.4.1
-pkgrel=3
+pkgrel=4
pkgdesc='Complete solution to record, convert and stream audio and video'
arch=(x86_64)
url=https://ffmpeg.org/
@@ -176,9 +176,20 @@
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:
More information about the arch-commits
mailing list