extra/ffmpeg4.4 to 4.4.1-4

This commit is contained in:
Kevin Mihelich 2022-02-18 19:11:11 +00:00
parent cc3dec485d
commit 272f33914d

View file

@ -16,7 +16,7 @@
pkgname=ffmpeg4.4 pkgname=ffmpeg4.4
pkgver=4.4.1 pkgver=4.4.1
pkgrel=1 pkgrel=4
pkgdesc='Complete solution to record, convert and stream audio and video' pkgdesc='Complete solution to record, convert and stream audio and video'
arch=(x86_64) arch=(x86_64)
url=https://ffmpeg.org/ url=https://ffmpeg.org/
@ -175,9 +175,20 @@ build() {
package() { package() {
make DESTDIR="${pkgdir}" -C ffmpeg install make DESTDIR="${pkgdir}" -C ffmpeg install
rm -rf "${pkgdir}"/usr/share
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d cd "${pkgdir}"
echo '/usr/lib/ffmpeg4.4' > "${pkgdir}"/etc/ld.so.conf.d/ffmpeg4.4.conf
# 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: