[source]
same_as = "../neverball"

[build]
dependencies = [
    "libjpeg",
    "libogg",
]
template = "custom"
script = """
DYNAMIC_INIT

rsync -av --delete "${COOKBOOK_SOURCE}/" ./

"${COOKBOOK_MAKE}" -j"${COOKBOOK_MAKE_JOBS}" ENABLE_FS=stdio PKG_CONFIG="pkg-config" CC="cc" mapc sols

# Copy assets
mkdir -p "${COOKBOOK_STAGE}/usr/games/neverball"
cp -rv data "${COOKBOOK_STAGE}/usr/games/neverball"
"""
