3bcf4cc196
Comprehensive fix — not a fallback. Each recipe now has explicit [package] section with name and version. Version inference: - Git-source recipes without rev/branch: '0.1.0' (Red Bear convention) - Tar/git recipes with version in URL or dir name: extracted version - Sysroot-copy recipes: matched to toolchain version Affected: 250+ recipes across all categories (core, libs, dev, system, kde, qt, drivers, gpu, drm, kernel, userspace, etc.) Every recipe in the redbear-mini build chain that was missing [package] now has explicit version metadata. Cookbook can now always determine a version at packaging time, eliminating 'cannot guess version' failures. No cookbook fallback hack — the source of truth is recipe metadata.
38 lines
979 B
TOML
38 lines
979 B
TOML
[package]
|
|
name = "dosbox"
|
|
version = "0.74"
|
|
|
|
[source]
|
|
tar = "https://sourceforge.net/projects/dosbox/files/dosbox/0.74-3/dosbox-0.74-3.tar.gz/download"
|
|
blake3 = "8bc50ffdba20579fb3080a0dca32cb939c8a3c19259aed026482c6ac069b0007"
|
|
patches = ["01_redox.patch"]
|
|
script = """
|
|
./autogen.sh
|
|
GNU_CONFIG_GET config.sub
|
|
"""
|
|
|
|
[build]
|
|
dependencies = [
|
|
"liborbital",
|
|
"sdl1",
|
|
]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL"
|
|
export CPPFLAGS="${CPPFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL"
|
|
export LDFLAGS+=" -lorbital"
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
--disable-opengl
|
|
--disable-sdltest
|
|
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
|
|
)
|
|
cookbook_configure
|
|
|
|
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"
|
|
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/usr/share/ui/apps/dosbox"
|
|
|
|
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/apps"
|
|
cp -v "${COOKBOOK_RECIPE}/icon.png" "${COOKBOOK_STAGE}/usr/share/icons/apps/dosbox.png"
|
|
"""
|