wok view get-pcem-roms/stuff/get-pcem-roms @ rev 21920

Add pcem
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 05 16:15:48 2019 +0200 (2019-10-05)
parents
children e6a4cd87fdcb
line source
1 #!/bin/sh
3 VERSION="15.0"
4 WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs"
5 ARCHIVE="$WEB_SITE/archive/v$VERSION.tar.gz"
7 mkdir -p /home/$USER/.pcem 2> /dev/null ||
8 mv /home/$USER/.pcem/roms /home/$USER/.pcem/roms-old
9 wget -O - $ARCHIVE | tar xzf - -C /home/$USER/.pcem/
10 mv /home/$USER/.pcem/PCem-ROMs-$VERSION /home/$USER/.pcem/roms
11 chown -R $USER.users /home/$USER/.pcem