0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 06:55:47 +00:00
Files
termux-packages/packages/ffmpeg/sync-debian-patches.sh
Fredrik Fornwall 9d082fb7b7 enhance(main/ffmpeg): Use debian patches
ffmpeg is a large and complex code base that has occasional security and
functionality issues, while being not that frequently released.

This PR proposes syncing patches from debian, replacing our single
handpicked backported commit.

Run ./packages/ffmpeg/sync-debian-patches.sh to regenerate the patchset
from debian.
2025-01-21 16:40:01 +01:00

19 lines
380 B
Bash
Executable File

#!/bin/sh
set -e -u
srcdir=$(realpath "$(dirname "$0")")
rm -Rf debian-*.patch
checkout_dir=$(mktemp -d)
cd "$checkout_dir"
git clone --depth=1 https://salsa.debian.org/multimedia-team/ffmpeg.git
for patch in ffmpeg/debian/patches/*.patch; do
new_patch=debian-$(basename "$patch")
echo "$patch" -> "$new_patch"
cp "$patch" "$srcdir/$new_patch"
done
rm -Rf "$checkout_dir"