From e0de67fad75b98e7304f7f75476889156240d33f Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 2 Apr 2025 14:11:52 -0300 Subject: [PATCH] Fix libraries --- dot_config/eget/eget.toml | 2 +- dot_config/eget/executable_post_install.sh | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/dot_config/eget/eget.toml b/dot_config/eget/eget.toml index 99bdbb5..ca4622b 100644 --- a/dot_config/eget/eget.toml +++ b/dot_config/eget/eget.toml @@ -58,7 +58,7 @@ ["BtbN/FFmpeg-Builds"] asset_filters = [ "^lgpl", "shared", "master", ".tar.xz" ] - all = true + download_only = true # Shared libraries aren't extracted correctly, need to do in post install script #["romkatv/zsh-bin"] # asset_filters = [ "^asc" ] diff --git a/dot_config/eget/executable_post_install.sh b/dot_config/eget/executable_post_install.sh index 546a124..363ef40 100644 --- a/dot_config/eget/executable_post_install.sh +++ b/dot_config/eget/executable_post_install.sh @@ -42,8 +42,25 @@ if compgen -G "bash-completion*tar*" > /dev/null; then chmod +x bash_completion fi -# Handle shared libraries -rsync --remove-source-files $(fd --glob "*.so*") ../lib +if compgen -G "ffmpeg*tar*" > /dev/null; then + # Extract ffmpeg + tar xf ffmpeg*tar* + + # Handle shared libraries + rsync --remove-source-files --links $(fd --glob "*.so*") ../lib + + # Binaries + mv -f ffmpeg*/bin/* . + + # Remove archive + rm -r ffmpeg*tar* + + # Remove extracted files + rm -r ffmpeg-* +fi + + + # Gen Desktop file for firefox appimage gendesk -f -n --pkgname "firefox" --name "Firefox" --exec "firefox" --icon "firefox" --categories "Network" --comment "Firefox Web Browser" --genericname "Web Browser"