29 lines
651 B
Bash
29 lines
651 B
Bash
#!/bin/bash
|
|
|
|
package_variant() {
|
|
IN="$1"
|
|
OUT="$2"
|
|
|
|
mkdir -p "$OUT"/bin
|
|
cp "$IN"/bin/* "$OUT"/bin
|
|
|
|
mkdir -p "$OUT"/lib
|
|
cp -a "$IN"/lib/*.so* "$OUT"/lib
|
|
|
|
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
|
|
|
|
mkdir -p "$OUT"/include
|
|
cp -r "$IN"/include/* "$OUT"/include
|
|
|
|
mkdir -p "$OUT"/doc
|
|
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
|
|
|
|
mkdir -p "$OUT/man"
|
|
cp -r "$IN"/share/man/* "$OUT"/man
|
|
}
|