mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
37 lines
1.0 KiB
TOML
37 lines
1.0 KiB
TOML
[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 = """
|
|
DYNAMIC_INIT
|
|
|
|
# Copy source to build directory
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
|
|
|
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL"
|
|
export SDLCONFIG="${COOKBOOK_SYSROOT}/bin/sdl-config --prefix=${COOKBOOK_SYSROOT}"
|
|
|
|
PLATFORM=REDOX "${COOKBOOK_MAKE}" -j"$($NPROC)"
|
|
|
|
mkdir -pv "${COOKBOOK_STAGE}/usr/games"
|
|
cp -v ./eduke32 "${COOKBOOK_STAGE}/usr/games/eduke32"
|
|
cp -v ./mapster32 "${COOKBOOK_STAGE}/usr/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"
|
|
"""
|