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.
49 lines
977 B
TOML
49 lines
977 B
TOML
[package]
|
|
name = "goaccess"
|
|
version = "1.9.4"
|
|
|
|
|
|
[source]
|
|
tar = "https://tar.goaccess.io/goaccess-1.9.4.tar.gz"
|
|
blake3 = "a7a7641c98956e8941191956129141e071321851d004269c7d21bce536d9224a"
|
|
|
|
#git = "https://github.com/allinurl/goaccess.git"
|
|
#branch = "master"
|
|
|
|
patches = [
|
|
"redox1.patch",
|
|
"redox2.patch",
|
|
]
|
|
|
|
# This is only needed when compiling from git. The tar.gz already has the make files.
|
|
script = """
|
|
autoreconf -fiv
|
|
automake --add-missing --copy --force-missing
|
|
"""
|
|
|
|
[build]
|
|
dependencies = ["ncursesw"]
|
|
template = "custom"
|
|
|
|
script = """
|
|
# Compile bin2c to be executed on the host
|
|
gcc -O2 -o "$COOKBOOK_BUILD/bin2c" "$COOKBOOK_SOURCE/src/bin2c.c"
|
|
chmod +x "$COOKBOOK_BUILD/bin2c"
|
|
|
|
# Compile goaccess
|
|
export COOKBOOK_NOSTRIP=1
|
|
DYNAMIC_INIT
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
--host=$ARCH-unknown-redox
|
|
--enable-utf8
|
|
--disable-geoip
|
|
--prefix=/usr
|
|
--disable-dependency-tracking
|
|
--with-bin2c-path="$COOKBOOK_BUILD/src/bin2c"
|
|
)
|
|
cookbook_configure
|
|
"""
|
|
|
|
|
|
|