mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
MANIFEST: automated the third party libs manager
This commit is contained in:
parent
ddae528ad7
commit
ccd4a65a98
|
@ -733,54 +733,20 @@ modules:
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
- |
|
- |
|
||||||
mkdir -p "${FLATPAK_DEST}/retrodeck/lib"
|
# Search for missingl ibraries in our libtmp folder
|
||||||
|
missing_libs=$(find "${FLATPAK_DEST}/bin" -type f -exec ldd {} + 2>/dev/null | grep "not found" | awk '{print $1}' | sort | uniq)
|
||||||
|
|
||||||
# List of needed libraries
|
src_dir="${FLATPAK_DEST}/retrodeck/tmplib"
|
||||||
files=(
|
dest_dir="${FLATPAK_DEST}/retrodeck/lib"
|
||||||
"libGLU.so.1"
|
mkdir -p "$dest_dir"
|
||||||
"libevdev.so.2"
|
|
||||||
"libusb-1.0.so.0"
|
|
||||||
"libjpeg.so.9"
|
|
||||||
"libfreeimage.so.3"
|
|
||||||
"libgit2.so.1.6"
|
|
||||||
"libpugixml.so.1"
|
|
||||||
"libavcodec.so.59"
|
|
||||||
"libavfilter.so.8"
|
|
||||||
"libavformat.so.59"
|
|
||||||
"libavutil.so.57"
|
|
||||||
"libpoppler-cpp.so.0"
|
|
||||||
"libzmusic.so.1"
|
|
||||||
"libQt5Widgets.so.5"
|
|
||||||
"libQt5Multimedia.so.5"
|
|
||||||
"libslirp.so.0"
|
|
||||||
"libQt5Gui.so.5"
|
|
||||||
"libQt5Network.so.5"
|
|
||||||
"libQt5Core.so.5"
|
|
||||||
"libpcap.so.0.8"
|
|
||||||
"libGLEW.so.2.2"
|
|
||||||
"libsolarus.so.1"
|
|
||||||
"libswscale.so.6"
|
|
||||||
"libpostproc.so.56"
|
|
||||||
"libpoppler.so.125"
|
|
||||||
"libphysfs.so.1"
|
|
||||||
"libmodplug.so.1"
|
|
||||||
"libluajit-5.1.so.2"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_dir="${FLATPAK_DEST}/retrodeck/lib"
|
# Search and bring in the missing libraries
|
||||||
dest_dir="${FLATPAK_DEST}/retrodeck/tmplib"
|
for lib in $missing_libs; do
|
||||||
|
if [[ -f "$src_dir/$lib" ]]; then
|
||||||
# copy needed libraries in
|
cp "$src_dir/$lib" "$dest_dir"
|
||||||
for file in "${files[@]}"; do
|
|
||||||
if [[ -f "$src_dir/$file" ]]; then
|
|
||||||
cp "$src_dir/$file" "$dest_dir"
|
|
||||||
echo "Copied $file to $dest_dir"
|
|
||||||
else
|
|
||||||
echo "File $file not found in $src_dir"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
- name: retrodeck
|
- name: retrodeck
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
|
|
Loading…
Reference in a new issue