Skip to content

Commit

Permalink
Update abiword-junest.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jan 20, 2025
1 parent 185874c commit e1692a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions abiword-junest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,11 @@ _savelibs() {
LIBPATHS="$LIBPATHS $(find ./archlinux/.junest/usr/lib -maxdepth 20 -wholename "*$arg*" | sed 's/\.\/archlinux\///g')"
done
for arg in $LIBPATHS; do
cp -r ./archlinux/"$arg" "$APP".AppDir/"$arg" 2>/dev/null &
[ ! -d "$APP".AppDir/"$arg" ] && cp -r ./archlinux/"$arg" "$APP".AppDir/"$arg" &
done
wait
core_libs=$(find ./"$APP".AppDir -type f)
lib_core=$(for c in $core_libs; do readelf -d "$c" 2>/dev/null | grep NEEDED | tr '[] ' '\n' | grep ".so"; done)

echo "◆ Detect libraries of the main package"
base_libs=$(find ./base -type f | uniq)
Expand Down Expand Up @@ -450,7 +452,7 @@ _savelibs() {
lib_base_8=$(echo "$lib_base_8" | tr ' ' '\n' | sort -u | xargs)
lib_base_9=$(for b in $lib_base_8; do readelf -d ./archlinux/.junest/usr/lib/"$b" 2>/dev/null | grep NEEDED | tr '[] ' '\n' | grep ".so"; done)
lib_base_9=$(echo "$lib_base_9" | tr ' ' '\n' | sort -u | xargs)
lib_base_libs="$lib_base_0 $lib_base_1 $lib_base_2 $lib_base_3 $lib_base_4 $lib_base_5 $lib_base_6 $lib_base_7 $lib_base_8 $lib_base_9 $lib_deps"
lib_base_libs="$lib_core $lib_base_0 $lib_base_1 $lib_base_2 $lib_base_3 $lib_base_4 $lib_base_5 $lib_base_6 $lib_base_7 $lib_base_8 $lib_base_9 $lib_deps"
lib_base_libs=$(echo "$lib_base_libs" | tr ' ' '\n' | sort -u | sed 's/.so.*/.so/' | xargs)
for l in $lib_base_libs; do
rsync -av ./archlinux/.junest/usr/lib/"$l"* ./"$APP".AppDir/.junest/usr/lib/ &
Expand Down

0 comments on commit e1692a1

Please sign in to comment.