43 lines
941 B
Plaintext
43 lines
941 B
Plaintext
|
|
#! /bin/bash
|
||
|
|
#
|
||
|
|
# Dice (Discrete Integrated Circuit Emulator) is an emulation engine for very
|
||
|
|
# old arcade games that did not have a CPU. This emulator accurately simulates
|
||
|
|
# the logic gates on the board.
|
||
|
|
|
||
|
|
doas pacman --noconfirm --needed -S wine winetricks
|
||
|
|
|
||
|
|
winetricks
|
||
|
|
|
||
|
|
doas mkdir /opt/DICE
|
||
|
|
|
||
|
|
dir=$(mktemp -d)
|
||
|
|
|
||
|
|
wget https://netix.dl.sourceforge.net/project/dice/DICE/DICE%200.9/dice.0.9.win.x64.zip -O ${dir}/dice.zip
|
||
|
|
|
||
|
|
doas unzip -qq ${dir}/dice.zip -d /opt/DICE
|
||
|
|
|
||
|
|
doas touch /opt/DICE/dice.sh
|
||
|
|
doas tee /opt/DICE/dice.sh <<HRD
|
||
|
|
#! /bin/sh
|
||
|
|
wine /opt/DICE/dice.exe \$1
|
||
|
|
HRD
|
||
|
|
|
||
|
|
doas chmod 755 /opt/DICE
|
||
|
|
doas chmod +x /opt/DICE/dice.sh
|
||
|
|
doas ln -fs /opt/DICE/dice.sh /usr/bin/dice
|
||
|
|
|
||
|
|
doas touch /opt/DICE/DICE.desktop
|
||
|
|
|
||
|
|
doas tee /opt/DICE/DICE.desktop <<HRD
|
||
|
|
[Desktop Entry]
|
||
|
|
Version=0.9
|
||
|
|
Name=DICE
|
||
|
|
Comment=DICE is an emulator for integrated circuits of old arcade games
|
||
|
|
Exec=/opt/dice.sh
|
||
|
|
Path=/opt/DICE
|
||
|
|
Terminal=false
|
||
|
|
Type=Application
|
||
|
|
Categories=Games
|
||
|
|
HRD
|
||
|
|
|