Skip to content

Commit

Permalink
Merge pull request #841 from Cebion/vodvod
Browse files Browse the repository at this point in the history
New Port: Vodovod
  • Loading branch information
cdeletre authored Oct 24, 2024
2 parents 7e3fe97 + 868608e commit 72fb19f
Show file tree
Hide file tree
Showing 33 changed files with 498 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ports/vodovod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Notes
Thanks to [Milan Babuškov & fellow contributors](http://home.gna.org/vodovod) for making this game!

The original project website is no longer available. Please see also
https://packages.debian.org/sid/vodovod for more information.


## Controls

| Button | Action |
|--|--|
|DPAD| Move Cursor|
|A | Switch Pieces|
|B | Flood|


## Compile

```shell
dget - u http://deb.debian.org/debian/pool/main/v/vodovod/vodovod_1.10-5.dsc
cd vodovod-1.10
make
```
38 changes: 38 additions & 0 deletions ports/vodovod/Vodovod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}

if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
controlfolder="$XDG_DATA_HOME/PortMaster"
else
controlfolder="/roms/ports/PortMaster"
fi

source $controlfolder/control.txt

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

GAMEDIR=/$directory/ports/vodovod
CONFDIR="$GAMEDIR/conf"
BINARY=vodovod

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

mkdir -p "$GAMEDIR/conf"

export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export TEXTINPUTINTERACTIVE="Y"

cd $GAMEDIR

$GPTOKEYB "$BINARY" -c ./$BINARY.gptk &
pm_platform_helper "$GAMEDIR/$BINARY"
./$BINARY
pm_finish
13 changes: 13 additions & 0 deletions ports/vodovod/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Vodovod.sh</path>
<name>Vodovod</name>
<desc>Vodovod is a game similar to Pipe Mania and Pipe Dream, in which you have to lead the water from the house to the storage tank. You get a limited number of pipes on each level and need to combine them to lead the water from the house at the top of the screen to the storage tank at the bottom.</desc>
<releasedate>20070101T000000</releasedate>
<developer>Milan Babuškov</developer>
<publisher>Self-Published</publisher>
<genre>Puzzle</genre>
<image>./vodovod/screenshot.png</image>
</game>
</gameList>
30 changes: 30 additions & 0 deletions ports/vodovod/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "vodovod.zip",
"items": [
"Vodovod.sh",
"vodovod"
],
"items_opt": [],
"attr": {
"title": "Vodovod",
"porter": [
"Cebion"
],
"desc": "Vodovod is a game similar to Pipe Mania and Pipe Dream, in which you have to lead the water from the house to the storage tank. You get a limited number of pipes on each level and need to combine them to lead the water from the house at the top of the screen to the storage tank at the bottom.",
"desc_md": null,
"inst": "Ready to run!",
"inst_md": null,
"genres": [
"puzzle"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
}
}
Binary file added ports/vodovod/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 72fb19f

Please sign in to comment.