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

eduke32: convert to toml

parent f8fe4dea
No related branches found
No related tags found
No related merge requests found
VERSION=20181010-7067
TAR=https://dukeworld.com/eduke32/synthesis/$VERSION/eduke32_src_$VERSION.tar.xz
BUILD_DEPENDS=(sdl1 sdl1-mixer liborbital libiconv libogg libvorbis)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
export LDFLAGS="-L$sysroot/lib -static"
export SDLCONFIG="$sysroot/bin/sdl-config --prefix=$sysroot"
PLATFORM=REDOX "$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
mkdir -pv "$1/games"
cp -v ./eduke32 "$1/games/eduke32"
cp -v ./mapster32 "$1/games/mapster32"
mkdir -pv "$1/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "$1/ui/apps/eduke32"
mkdir -pv "$1/ui/icons/apps"
cp -v "${COOKBOOK_RECIPE}/icon.png" "$1/ui/icons/apps/eduke32.png"
skip=1
}
[source]
tar = "https://dukeworld.com/eduke32/synthesis/20181010-7067/eduke32_src_20181010-7067.tar.xz"
blake3 = "b0b759fe9ca51849f42669e4832ae1ae1f9ad7938529769108f7cf6a6a176558"
patches = ["redox.patch"]
[build]
dependencies = [
"sdl1",
"sdl1-mixer",
"liborbital",
"libiconv",
"libogg",
"libvorbis",
]
template = "custom"
script = """
# Copy source to build directory
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
export CFLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/SDL"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
export SDLCONFIG="${COOKBOOK_SYSROOT}/bin/sdl-config --prefix=${COOKBOOK_SYSROOT}"
PLATFORM=REDOX "${COOKBOOK_MAKE}" -j"$($NPROC)"
mkdir -pv "${COOKBOOK_STAGE}/games"
cp -v ./eduke32 "${COOKBOOK_STAGE}/games/eduke32"
cp -v ./mapster32 "${COOKBOOK_STAGE}/games/mapster32"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/eduke32"
mkdir -pv "${COOKBOOK_STAGE}/ui/icons/apps"
cp -v "${COOKBOOK_RECIPE}/icon.png" "${COOKBOOK_STAGE}/ui/icons/apps/eduke32.png"
"""
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