From 14c5db985f961dbb34eb8ff510aa8b46df0f822f Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 15 Nov 2023 15:56:21 -0700
Subject: [PATCH] Add fonts category and add ibm-plex and intel-one-mono fonts

---
 recipes/fonts/ibm-plex/recipe.toml                 | 14 ++++++++++++++
 recipes/fonts/intel-one-mono/recipe.toml           | 11 +++++++++++
 .../{other => fonts}/noto-color-emoji/recipe.toml  |  0
 recipes/{other => fonts}/ttf-hack/recipe.sh        |  0
 4 files changed, 25 insertions(+)
 create mode 100644 recipes/fonts/ibm-plex/recipe.toml
 create mode 100644 recipes/fonts/intel-one-mono/recipe.toml
 rename recipes/{other => fonts}/noto-color-emoji/recipe.toml (100%)
 rename recipes/{other => fonts}/ttf-hack/recipe.sh (100%)

diff --git a/recipes/fonts/ibm-plex/recipe.toml b/recipes/fonts/ibm-plex/recipe.toml
new file mode 100644
index 000000000..5f68ac6f4
--- /dev/null
+++ b/recipes/fonts/ibm-plex/recipe.toml
@@ -0,0 +1,14 @@
+[source]
+tar="https://github.com/IBM/plex/archive/refs/tags/v6.3.0.tar.gz"
+blake3="6c67f5bf8069762eea1e31f5cca5b4e6f57ea1151b34b338046c7976072ccdef"
+
+[build]
+template = "custom"
+script = """
+for style in Mono Sans Serif
+do
+    DEST="${COOKBOOK_STAGE}/ui/fonts/${style}/IBM-Plex"
+    mkdir -pv "${DEST}"
+    cp -v "${COOKBOOK_SOURCE}/IBM-Plex-${style}/fonts/complete/ttf/"*".ttf" "${DEST}"
+done
+"""
diff --git a/recipes/fonts/intel-one-mono/recipe.toml b/recipes/fonts/intel-one-mono/recipe.toml
new file mode 100644
index 000000000..a6dab3aeb
--- /dev/null
+++ b/recipes/fonts/intel-one-mono/recipe.toml
@@ -0,0 +1,11 @@
+[source]
+tar="https://github.com/intel/intel-one-mono/archive/refs/tags/V1.3.0.tar.gz"
+blake3="9caff71b0a9fe8627253c55889964612ea4ae144584a283cd2fe88b7a14a4140"
+
+[build]
+template = "custom"
+script = """
+DEST="${COOKBOOK_STAGE}/ui/fonts/Mono/Intel-One"
+mkdir -pv "${DEST}"
+cp -v "${COOKBOOK_SOURCE}/fonts/ttf/"*".ttf" "${DEST}"
+"""
diff --git a/recipes/other/noto-color-emoji/recipe.toml b/recipes/fonts/noto-color-emoji/recipe.toml
similarity index 100%
rename from recipes/other/noto-color-emoji/recipe.toml
rename to recipes/fonts/noto-color-emoji/recipe.toml
diff --git a/recipes/other/ttf-hack/recipe.sh b/recipes/fonts/ttf-hack/recipe.sh
similarity index 100%
rename from recipes/other/ttf-hack/recipe.sh
rename to recipes/fonts/ttf-hack/recipe.sh
-- 
GitLab