2020-09-23 08:29:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
package_variant() {
|
|
|
|
IN="$1"
|
|
|
|
OUT="$2"
|
|
|
|
|
2021-05-13 15:35:45 +00:00
|
|
|
mkdir -p "$OUT"/bin
|
|
|
|
cp "$IN"/bin/* "$OUT"/bin
|
2020-09-23 09:58:13 +00:00
|
|
|
|
|
|
|
mkdir -p "$OUT"/lib
|
2021-05-12 17:50:12 +00:00
|
|
|
cp -a "$IN"/lib/*.so* "$OUT"/lib
|
2020-09-23 09:58:13 +00:00
|
|
|
|
2021-12-05 22:30:34 +00:00
|
|
|
mkdir -p "$OUT"/lib/pkgconfig
|
|
|
|
cp -a "$IN"/lib/pkgconfig/*.pc "$OUT"/lib/pkgconfig
|
|
|
|
sed -i \
|
|
|
|
-e 's|^prefix=.*|prefix=${pcfiledir}/../..|' \
|
|
|
|
-e 's|/ffbuild/prefix|${prefix}|' \
|
|
|
|
-e '/Libs.private:/d' \
|
|
|
|
"$OUT"/lib/pkgconfig/*.pc
|
|
|
|
|
2020-09-23 09:58:13 +00:00
|
|
|
mkdir -p "$OUT"/include
|
|
|
|
cp -r "$IN"/include/* "$OUT"/include
|
2020-09-23 08:29:54 +00:00
|
|
|
|
2021-05-12 17:50:12 +00:00
|
|
|
mkdir -p "$OUT"/doc
|
2020-09-23 08:29:54 +00:00
|
|
|
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
|
2023-06-22 20:26:29 +00:00
|
|
|
|
|
|
|
mkdir -p "$OUT/man"
|
|
|
|
cp -r "$IN"/share/man/* "$OUT"/man
|
2020-09-23 08:29:54 +00:00
|
|
|
}
|