libretro-super/libretro-install.sh

46 lines
1.4 KiB
Bash
Raw Normal View History

2011-11-02 11:27:23 -04:00
#!/bin/sh
if [ -z "$1" ]; then
2012-04-16 13:33:18 -04:00
LIBRETRO_DIR="/usr/local/lib/libretro"
2011-11-02 11:27:23 -04:00
else
2012-04-16 13:33:18 -04:00
LIBRETRO_DIR="$1"
2011-11-02 11:27:23 -04:00
fi
2012-04-22 11:12:15 -04:00
if [ ! -d "$LIBRETRO_DIR" ]; then
2012-04-16 13:33:18 -04:00
mkdir -p "$LIBRETRO_DIR"
2011-11-02 11:27:23 -04:00
fi
LIBS=""
2012-04-16 15:12:36 -04:00
LIBS="$LIBS libretro-bsnes/libretro-bsnes-performance.so"
2013-01-15 06:24:05 -05:00
LIBS="$LIBS libretro-bsnes/libretro-bsnes-balanced.so"
2012-04-16 15:12:36 -04:00
LIBS="$LIBS libretro-bsnes/libretro-bsnes-accuracy.so"
2012-04-16 13:33:18 -04:00
LIBS="$LIBS libretro-s9x/libretro-snes9x.so"
LIBS="$LIBS libretro-s9x-next/libretro-snes9x-next.so"
LIBS="$LIBS libretro-genplus/libretro-genplus.so"
LIBS="$LIBS libretro-fba/libretro-fba.so"
LIBS="$LIBS libretro-vba/libretro-vba.so"
LIBS="$LIBS libretro-fceu/libretro-fceu.so"
LIBS="$LIBS libretro-bnes/libretro-bnes.so"
LIBS="$LIBS libretro-gambatte/libretro-gambatte.so"
LIBS="$LIBS libretro-meteor/libretro-meteor.so"
2012-04-22 14:45:51 -04:00
LIBS="$LIBS libretro-nx/libretro-nx.so"
2012-05-16 17:22:42 -04:00
LIBS="$LIBS libretro-prboom/libretro-prboom.so"
2012-08-28 04:07:58 -04:00
LIBS="$LIBS libretro-stella/libretro-stella.so"
2012-10-31 16:05:58 -04:00
LIBS="$LIBS libretro-desmume/libretro-desmume.so"
2012-11-08 16:55:59 -05:00
LIBS="$LIBS libretro-mednafen/libretro-mednafen-psx.so"
LIBS="$LIBS libretro-mednafen/libretro-mednafen-pce-fast.so"
LIBS="$LIBS libretro-mednafen/libretro-mednafen-wswan.so"
2013-01-10 08:33:48 -05:00
LIBS="$LIBS libretro-quicknes/libretro-quicknes.so"
2013-01-16 03:08:42 -05:00
LIBS="$LIBS libretro-nestopia/libretro-nestopia.so"
2013-03-02 03:47:24 -05:00
LIBS="$LIBS libretro-tyrquake/libretro-tyrquake.so"
2011-11-02 11:27:23 -04:00
for lib in $LIBS
do
if [ -f $lib ]; then
2012-04-16 13:33:18 -04:00
install -v -m644 $lib "$LIBRETRO_DIR"
2011-11-02 11:27:23 -04:00
else
echo "Library $lib not found, skipping ..."
fi
done