Installer doom-ii-hell-on-earth-v19-doom2wad

files:
- doom2wad19: 'N/A: Please provide v1.9 doom2.wad (sha256: 10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255)'
game:
  exe: $GAMEDIR/doom2.sh
installer:
- write_file:
    content: '#!/bin/bash

      file="$1"; hash="$2"; echo "[INFO] Verifying $(basename "$file") sha256 checksum...";
      if [ $(sha256sum "$file" | cut -c 1-64) = "$hash" ]; then echo "[INFO] ...checksum
      OK!"; else echo "[ERROR] ...checksum FAILED!"; exit 1; fi

      '
    file: $CACHE/checkhash.sh
- execute:
    args: +x $CACHE/checkhash.sh
    file: chmod
- merge:
    dst: $CACHE/doom2wad19
    src: doom2wad19
- execute:
    args: doom2wad19 $doom2wad19_sha256
    file: $CACHE/checkhash.sh
- execute:
    args: -p $GAMEDIR/wads
    file: mkdir
- merge:
    dst: $GAMEDIR/wads
    src: $CACHE/doom2wad19
- execute:
    args: -p $GAMEDIR/savegames/doom2.wad
    file: mkdir
- write_file:
    content: '#!/bin/bash

      crispy-doom -config default.cfg -extraconfig crispy-doom.cfg -iwad wads/doom2.wad
      -savedir savegames/doom2.wad $@

      '
    file: $GAMEDIR/doom2.sh
- execute:
    args: +x $GAMEDIR/doom2.sh
    file: chmod
require-binaries: sha256sum, crispy-doom
variables:
  doom2wad19_sha256: 10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255
description: Creates launcher script that uses system's crispy-doom binary and stores
  persistent config in game directory.
game_slug: doom-ii-hell-on-earth
gogslug: doom_ii
humblestoreid: ''
installer_slug: doom-ii-hell-on-earth-v19-doom2wad
name: 'Doom II: Hell on Earth'
notes: "Requires crispy-doom (https://github.com/fabiangreffrath/crispy-doom) package\
  \ for your Linux distribution to be installed.\r\n\r\nVersion 1.9 is 14,604,584\
  \ bytes in size, is dated 1995-02-01, and contains 2,919 entries. It has the following\
  \ hashes:\r\nHash type \tHash code\r\nMD5 \t25e1459ca71d321525f84628f45ca8cd\r\n\
  SHA-1 \t7ec7652fcfce8ddc6e801839291f0e28ef1d5ae7\r\nCRC-32 \tec8725db \r\nSource:\
  \ https://doomwiki.org/wiki/DOOM2.WAD"
runner: linux
script:
  files:
  - doom2wad19: 'N/A: Please provide v1.9 doom2.wad (sha256: 10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255)'
  game:
    exe: $GAMEDIR/doom2.sh
  installer:
  - write_file:
      content: '#!/bin/bash

        file="$1"; hash="$2"; echo "[INFO] Verifying $(basename "$file") sha256 checksum...";
        if [ $(sha256sum "$file" | cut -c 1-64) = "$hash" ]; then echo "[INFO] ...checksum
        OK!"; else echo "[ERROR] ...checksum FAILED!"; exit 1; fi

        '
      file: $CACHE/checkhash.sh
  - execute:
      args: +x $CACHE/checkhash.sh
      file: chmod
  - merge:
      dst: $CACHE/doom2wad19
      src: doom2wad19
  - execute:
      args: doom2wad19 $doom2wad19_sha256
      file: $CACHE/checkhash.sh
  - execute:
      args: -p $GAMEDIR/wads
      file: mkdir
  - merge:
      dst: $GAMEDIR/wads
      src: $CACHE/doom2wad19
  - execute:
      args: -p $GAMEDIR/savegames/doom2.wad
      file: mkdir
  - write_file:
      content: '#!/bin/bash

        crispy-doom -config default.cfg -extraconfig crispy-doom.cfg -iwad wads/doom2.wad
        -savedir savegames/doom2.wad $@

        '
      file: $GAMEDIR/doom2.sh
  - execute:
      args: +x $GAMEDIR/doom2.sh
      file: chmod
  require-binaries: sha256sum, crispy-doom
  variables:
    doom2wad19_sha256: 10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255
slug: doom-ii-hell-on-earth-v19-doom2wad
steamid: 2300
version: v1.9 doom2.wad
year: 1994
{
  "game_slug": "doom-ii-hell-on-earth",
  "version": "v1.9 doom2.wad",
  "description": "Creates launcher script that uses system's crispy-doom binary and stores persistent config in game directory.",
  "notes": "Requires crispy-doom (https://github.com/fabiangreffrath/crispy-doom) package for your Linux distribution to be installed.\r\n\r\nVersion 1.9 is 14,604,584 bytes in size, is dated 1995-02-01, and contains 2,919 entries. It has the following hashes:\r\nHash type \tHash code\r\nMD5 \t25e1459ca71d321525f84628f45ca8cd\r\nSHA-1 \t7ec7652fcfce8ddc6e801839291f0e28ef1d5ae7\r\nCRC-32 \tec8725db \r\nSource: https://doomwiki.org/wiki/DOOM2.WAD",
  "name": "Doom II: Hell on Earth",
  "year": 1994,
  "steamid": 2300,
  "gogslug": "doom_ii",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "doom-ii-hell-on-earth-v19-doom2wad",
  "installer_slug": "doom-ii-hell-on-earth-v19-doom2wad",
  "script": {
    "files": [
      {
        "doom2wad19": "N/A: Please provide v1.9 doom2.wad (sha256: 10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255)"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/doom2.sh"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nfile=\"$1\"; hash=\"$2\"; echo \"[INFO] Verifying $(basename \"$file\") sha256 checksum...\"; if [ $(sha256sum \"$file\" | cut -c 1-64) = \"$hash\" ]; then echo \"[INFO] ...checksum OK!\"; else echo \"[ERROR] ...checksum FAILED!\"; exit 1; fi\n",
          "file": "$CACHE/checkhash.sh"
        }
      },
      {
        "execute": {
          "args": "+x $CACHE/checkhash.sh",
          "file": "chmod"
        }
      },
      {
        "merge": {
          "dst": "$CACHE/doom2wad19",
          "src": "doom2wad19"
        }
      },
      {
        "execute": {
          "args": "doom2wad19 $doom2wad19_sha256",
          "file": "$CACHE/checkhash.sh"
        }
      },
      {
        "execute": {
          "args": "-p $GAMEDIR/wads",
          "file": "mkdir"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/wads",
          "src": "$CACHE/doom2wad19"
        }
      },
      {
        "execute": {
          "args": "-p $GAMEDIR/savegames/doom2.wad",
          "file": "mkdir"
        }
      },
      {
        "write_file": {
          "content": "#!/bin/bash\ncrispy-doom -config default.cfg -extraconfig crispy-doom.cfg -iwad wads/doom2.wad -savedir savegames/doom2.wad $@\n",
          "file": "$GAMEDIR/doom2.sh"
        }
      },
      {
        "execute": {
          "args": "+x $GAMEDIR/doom2.sh",
          "file": "chmod"
        }
      }
    ],
    "require-binaries": "sha256sum, crispy-doom",
    "variables": {
      "doom2wad19_sha256": "10d67824b11025ddd9198e8cfc87ca335ee6e2d3e63af4180fa9b8a471893255"
    }
  }
}
Back to game