Skip to content
Snippets Groups Projects
Commit dfdfeb3b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add binaries to run freedoom

parent 43facb2a
No related branches found
No related tags found
No related merge requests found
GIT=https://github.com/redox-os/freedoom.git
DEPENDS=(ion prboom)
function recipe_version {
echo "0.11.3"
......@@ -26,8 +27,18 @@ function recipe_clean {
}
function recipe_stage {
mkdir -pv "$1/share/games/doom"
cp -Rv ./*.wad "$1/share/games/doom"
mkdir -pv "$1/games" "$1/share/games/doom"
for file in ./*.wad
do
game="$(basename "$file" .wad)"
wad="/share/games/doom/$game.wad"
cp -v "$file" "$1$wad"
bin="/games/$game"
echo "#!/bin/ion" > "$1$bin"
echo "/games/prboom -geom 800x600 -vidmode 32 -iwad $wad" >> "$1$bin"
chmod +x "$1$bin"
done
skip=1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment