From 2ac416fa07049e73efc162ab6f4a7f4ac06ed100 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 13 Dec 2023 14:22:47 -0700
Subject: [PATCH] Convert gawk recipe to toml, move to wip

---
 recipes/dev/gawk/recipe.sh   | 20 --------------------
 recipes/wip/gawk/recipe.toml | 15 +++++++++++++++
 2 files changed, 15 insertions(+), 20 deletions(-)
 delete mode 100644 recipes/dev/gawk/recipe.sh
 create mode 100644 recipes/wip/gawk/recipe.toml

diff --git a/recipes/dev/gawk/recipe.sh b/recipes/dev/gawk/recipe.sh
deleted file mode 100644
index 6e616566a..000000000
--- a/recipes/dev/gawk/recipe.sh
+++ /dev/null
@@ -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
-}
diff --git a/recipes/wip/gawk/recipe.toml b/recipes/wip/gawk/recipe.toml
new file mode 100644
index 000000000..098055aea
--- /dev/null
+++ b/recipes/wip/gawk/recipe.toml
@@ -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
+"""
-- 
GitLab