Installer hovertank-3d-sdl-source-port

files:
- archive: N/A:Select the game's archive file
- sourceport: https://github.com/Codes4Fun/SDL_Hovertank3D/archive/master.zip
game:
  exe: $GAMEDIR/game
  working_dir: $GAMEDIR
installer:
- extract:
    dst: $GAMEDIR
    src: $archive
- extract:
    dst: $CACHE
    src: $sourceport
- execute:
    command: mkdir $CACHE/build
    working_dir: $CACHE
- execute:
    command: cd $CACHE/build && cmake -D CMAKE_CXX_FLAGS="-fno-operator-names" $CACHE
    working_dir: $CACHE/build
- execute:
    command: cd $CACHE/build && make
    working_dir: $CACHE/build
- merge:
    dst: $GAMEDIR
    src: $CACHE/build/game
require-binaries: cmake, g++
description: Compiles and installs the SDL_Hovertank3D source port from source code.
  Requires a zip file with the game data files to work.
game_slug: hovertank-3d
gogslug: ''
humblestoreid: ''
installer_slug: hovertank-3d-sdl-source-port
name: Hovertank 3D
notes: Requires CMake, G++ and the SDL 2 development files to be installed system-wide
runner: linux
script:
  files:
  - archive: N/A:Select the game's archive file
  - sourceport: https://github.com/Codes4Fun/SDL_Hovertank3D/archive/master.zip
  game:
    exe: $GAMEDIR/game
    working_dir: $GAMEDIR
  installer:
  - extract:
      dst: $GAMEDIR
      src: $archive
  - extract:
      dst: $CACHE
      src: $sourceport
  - execute:
      command: mkdir $CACHE/build
      working_dir: $CACHE
  - execute:
      command: cd $CACHE/build && cmake -D CMAKE_CXX_FLAGS="-fno-operator-names" $CACHE
      working_dir: $CACHE/build
  - execute:
      command: cd $CACHE/build && make
      working_dir: $CACHE/build
  - merge:
      dst: $GAMEDIR
      src: $CACHE/build/game
  require-binaries: cmake, g++
slug: hovertank-3d-sdl-source-port
steamid: null
version: SDL source port
year: 1991
{
  "game_slug": "hovertank-3d",
  "version": "SDL source port",
  "description": "Compiles and installs the SDL_Hovertank3D source port from source code. Requires a zip file with the game data files to work.",
  "notes": "Requires CMake, G++ and the SDL 2 development files to be installed system-wide",
  "name": "Hovertank 3D",
  "year": 1991,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "hovertank-3d-sdl-source-port",
  "installer_slug": "hovertank-3d-sdl-source-port",
  "script": {
    "files": [
      {
        "archive": "N/A:Select the game's archive file"
      },
      {
        "sourceport": "https://github.com/Codes4Fun/SDL_Hovertank3D/archive/master.zip"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/game",
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "extract": {
          "dst": "$GAMEDIR",
          "src": "$archive"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "src": "$sourceport"
        }
      },
      {
        "execute": {
          "command": "mkdir $CACHE/build",
          "working_dir": "$CACHE"
        }
      },
      {
        "execute": {
          "command": "cd $CACHE/build && cmake -D CMAKE_CXX_FLAGS=\"-fno-operator-names\" $CACHE",
          "working_dir": "$CACHE/build"
        }
      },
      {
        "execute": {
          "command": "cd $CACHE/build && make",
          "working_dir": "$CACHE/build"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/build/game"
        }
      }
    ],
    "require-binaries": "cmake, g++"
  }
}
Back to game