wok-6.x rev 24092

Up get-pcem-roms (2.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 18 13:15:53 2021 +0000 (2021-07-18)
parents 9849335f0b73
children a3b6dd3aac6f
files get-pcem-roms/receipt get-pcem-roms/stuff/get-pcem-roms pcem/receipt
line diff
     1.1 --- a/get-pcem-roms/receipt	Sat Jul 17 19:56:00 2021 +0000
     1.2 +++ b/get-pcem-roms/receipt	Sun Jul 18 13:15:53 2021 +0000
     1.3 @@ -1,12 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-pcem-roms"
     1.7 -VERSION="1.0"
     1.8 +VERSION="2.0"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="A collection of requiered ROMs files for PCem emulator"
    1.11  MAINTAINER="devel@slitaz.org"
    1.12  LICENSE="unknown"
    1.13  WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs"
    1.14 +SUGGESTED="pcem"
    1.15  
    1.16  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.17  genpkg_rules()
    1.18 @@ -14,3 +15,9 @@
    1.19  	mkdir -p $fs/usr/bin
    1.20  	cp $stuff/get-pcem-roms $fs/usr/bin
    1.21  }
    1.22 +
    1.23 +# Pre and post install commands for Tazpkg.
    1.24 +post_install()
    1.25 +{
    1.26 +	chroot "$1/" /usr/bin/get-pcem-roms
    1.27 +}
     2.1 --- a/get-pcem-roms/stuff/get-pcem-roms	Sat Jul 17 19:56:00 2021 +0000
     2.2 +++ b/get-pcem-roms/stuff/get-pcem-roms	Sun Jul 18 13:15:53 2021 +0000
     2.3 @@ -1,10 +1,11 @@
     2.4  #!/bin/sh
     2.5  
     2.6 +ROMS=/usr/share/pcem/roms
     2.7 +#ROMS=/home/$USER/.pcem/roms
     2.8  WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs"
     2.9  ARCHIVE="https://github.com$(wget -O - $WEB_SITE/releases | sed '/.tar.gz/!d;s|.*href="||;s|" .*||;q')"
    2.10  
    2.11 -mv -f /home/$USER/.pcem/roms /home/$USER/.pcem/roms-old ||
    2.12 -mkdir -p /home/$USER/.pcem
    2.13 -wget -O - $ARCHIVE | tar xzf - -C /home/$USER/.pcem/
    2.14 -mv /home/$USER/.pcem/PCem-ROMs-* /home/$USER/.pcem/roms
    2.15 -chown -R $USER.users /home/$USER/.pcem
    2.16 +mv -f $ROMS $ROMS-old 2> /dev/null || mkdir -p $(dirname $ROMS) 2> /dev/null
    2.17 +wget -O - $ARCHIVE | tar xzf - -C $(dirname $ROMS)
    2.18 +mv $(dirname $ROMS)/PCem-ROMs-* $ROMS
    2.19 +[ $ROMS = /home/$USER/.pcem/roms ] && chown -R $USER.users /home/$USER/.pcem
     3.1 --- a/pcem/receipt	Sat Jul 17 19:56:00 2021 +0000
     3.2 +++ b/pcem/receipt	Sun Jul 18 13:15:53 2021 +0000
     3.3 @@ -10,6 +10,7 @@
     3.4  WEB_SITE="https://pcem-emulator.co.uk/"
     3.5  WGET_URL="${WEB_SITE}files/PCemV${VERSION}Linux.tar.gz"
     3.6  TAGS="virtualization emulator"
     3.7 +SUGGESTED="get-pcem-roms"
     3.8  
     3.9  DEPENDS="wxWidgets libsdl2 openal alsa-lib"
    3.10  BUILD_DEPENDS="wxWidgets-dev libsdl2-dev openal-dev alsa-lib-dev"