From 4aefbfcc1273389ed68cbbcd6f41445ab6a0a4fa Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 13 Dec 2023 14:35:31 -0700
Subject: [PATCH] Convert pixman recipe to toml

---
 recipes/libs/pixman/recipe.sh   | 31 -------------------------------
 recipes/libs/pixman/recipe.toml |  7 +++++++
 2 files changed, 7 insertions(+), 31 deletions(-)
 delete mode 100644 recipes/libs/pixman/recipe.sh
 create mode 100644 recipes/libs/pixman/recipe.toml

diff --git a/recipes/libs/pixman/recipe.sh b/recipes/libs/pixman/recipe.sh
deleted file mode 100644
index 6db72d068..000000000
--- a/recipes/libs/pixman/recipe.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-VERSION="0.42.2"
-TAR=https://www.cairographics.org/releases/pixman-$VERSION.tar.gz
-
-function recipe_version {
-	echo "$VERSION"
-	skip=1
-}
-
-function recipe_build {
-	sysroot="$(realpath ../sysroot)"
-	./configure \
-            --build=${BUILD} \
-            --host=${HOST} \
-            --prefix=/ \
-            --disable-shared \
-            --enable-static
-	"$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
-	rm -f "$dest/lib/"*.la
-	skip=1
-}
diff --git a/recipes/libs/pixman/recipe.toml b/recipes/libs/pixman/recipe.toml
new file mode 100644
index 000000000..8c4ddf892
--- /dev/null
+++ b/recipes/libs/pixman/recipe.toml
@@ -0,0 +1,7 @@
+[source]
+tar = "https://www.cairographics.org/releases/pixman-0.42.2.tar.gz"
+blake3 = "40f8a5cb809ae218ef33c75499d0fed6cbe625b26d78e88822304947cc07f183"
+patches = ["redox.patch"]
+
+[build]
+template = "configure"
-- 
GitLab