File steamruntime-fix of Package steam

#!/bin/bash

echo "removing troublesome steam-runtime libs..."
find ~/.local/share/Steam/ubuntu12_32/steam-runtime -type f -name "libstdc*" -print -delete

echo "bringing in our fixed openssl libraries"
for lib in libcrypto.so.1.0.0 libssl.so.1.0.0; do
	find ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386 -name $lib | while read a
	do
		if [ -f /usr/lib/steam/lib/$lib   ]; then
			rm $a
			ln -s /usr/lib/steam/lib/$lib $a
		fi
	done

	find ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64 -name $lib | while read a
	do
		if [ -f /usr/lib/steam/lib64/$lib   ]; then
			rm $a
			ln -s /usr/lib/steam/lib64/$lib $a
		fi
	done
done
openSUSE Build Service is sponsored by