wok-6.x rev 21920
Add pcem
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 05 16:15:48 2019 +0200 (2019-10-05) |
parents | 423ad3757fef |
children | b367a52d4872 |
files | get-pcem-roms/receipt get-pcem-roms/stuff/get-pcem-roms pcem/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-pcem-roms/receipt Sat Oct 05 16:15:48 2019 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="get-pcem-roms" 1.7 +VERSION="1.0" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="A collection of requiered ROMs files for PCem emulator" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="unknown" 1.12 +WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/bin 1.18 + cp $stuff/get-pcem-roms $fs/usr/bin 1.19 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/get-pcem-roms/stuff/get-pcem-roms Sat Oct 05 16:15:48 2019 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +#!/bin/sh 2.5 + 2.6 +VERSION="15.0" 2.7 +WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs" 2.8 +ARCHIVE="$WEB_SITE/archive/v$VERSION.tar.gz" 2.9 + 2.10 +mkdir -p /home/$USER/.pcem 2> /dev/null || 2.11 +mv /home/$USER/.pcem/roms /home/$USER/.pcem/roms-old 2.12 +wget -O - $ARCHIVE | tar xzf - -C /home/$USER/.pcem/ 2.13 +mv /home/$USER/.pcem/PCem-ROMs-$VERSION /home/$USER/.pcem/roms 2.14 +chown -R $USER.users /home/$USER/.pcem
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/pcem/receipt Sat Oct 05 16:15:48 2019 +0200 3.3 @@ -0,0 +1,33 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="pcem" 3.7 +VERSION="15" 3.8 +CATEGORY="misc" 3.9 +SHORT_DESC="An IBM PC emulator" 3.10 +MAINTAINER="pascal.bellard@slitaz.org" 3.11 +LICENSE="GPL2" 3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 3.13 +WEB_SITE="https://pcem-emulator.co.uk/" 3.14 +WGET_URL="${WEB_SITE}files/PCemV${VERSION}Linux.tar.gz" 3.15 +TAGS="virtualization emulator" 3.16 + 3.17 +DEPENDS="wxWidgets libsdl2 openal alsa-lib" 3.18 +BUILD_DEPENDS="wxWidgets-dev libsdl2-dev openal-dev alsa-lib-dev" 3.19 + 3.20 +# Rules to configure and make the package. 3.21 +compile_rules() 3.22 +{ 3.23 + export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" 3.24 + ./configure --prefix=/usr \ 3.25 + --enable-networking \ 3.26 + --enable-alsa \ 3.27 + $CONFIGURE_ARGS && 3.28 + make && 3.29 + make DESTDIR=$DESTDIR install 3.30 +} 3.31 + 3.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.33 +genpkg_rules() 3.34 +{ 3.35 + cp -a $install/* $fs/ 3.36 +}