Convert gawk recipe to toml, move to wip

This commit is contained in:
Jeremy Soller 2023-12-13 14:22:47 -07:00
parent 09046db8d2
commit 2ac416fa07
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 15 additions and 20 deletions

View File

@ -1,20 +0,0 @@
GIT=https://gitlab.redox-os.org/redox-os/gawk.git
GIT_UPSTREAM=https://git.savannah.gnu.org/git/gawk.git
BRANCH=redox
function recipe_build {
./configure --build=${BUILD} --host=${HOST} --prefix=/ ac_cv_func_gethostbyname=no ac_cv_func_connect=no
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
skip=1
}

View File

@ -0,0 +1,15 @@
#TODO: langinfo.h
[source]
git = "https://gitlab.redox-os.org/redox-os/gawk.git"
upstream = "https://git.savannah.gnu.org/git/gawk.git"
branch = "redox"
[build]
template = "custom"
script = """
COOKBOOK_CONFIGURE_FLAGS+=(
ac_cv_func_gethostbyname=no
ac_cv_func_connect=no
)
cookbook_configure
"""