redox/recipes/freedoom/recipe.sh
2018-05-02 19:18:39 -06:00

45 lines
788 B
Bash

GIT=https://github.com/redox-os/freedoom.git
DEPENDS=(ion prboom)
function recipe_version {
echo "0.11.3"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
echo "skipping build"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
echo "skipping clean"
skip=1
}
function recipe_stage {
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
}