3 outp
=$out/lib
/steam-runtime
10 echo "adding package $pkg"
11 for path
in $paths; do
12 if [ -d $pkg/$path ]; then
17 if [ -e "$outp/$i/$file" ]; then
22 if [ -z "$found" ]; then
24 ln -s "$pkg/$path/$file" $outp/$path
25 sovers
=$
(echo $file | perl
-ne 'print if s/.*?\.so\.(.*)/\1/')
26 if [ ! -z "$sovers" ]; then
27 fname
=''${file%.''${sovers}}
28 for ver
in ''${sovers//./ }; do
31 if [ -e "$outp/$i/$fname" ]; then
36 [ -n "$found" ] ||
ln -s "$pkg/$path/$file" "$outp/$path/$fname"