From 169faf992ddea6d2c2fc7613309b4a192104c6a1 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 9 Dec 2022 11:37:12 -0700 Subject: [PATCH 1/2] Add noto color emoji recipe --- recipes/noto-color-emoji/recipe.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes/noto-color-emoji/recipe.toml diff --git a/recipes/noto-color-emoji/recipe.toml b/recipes/noto-color-emoji/recipe.toml new file mode 100644 index 000000000..7dce87eeb --- /dev/null +++ b/recipes/noto-color-emoji/recipe.toml @@ -0,0 +1,10 @@ +[source] +git = "https://github.com/googlefonts/noto-emoji.git" + +[build] +template = "custom" +script = """ +DEST="${COOKBOOK_STAGE}/ui/fonts/Emoji/Noto" +mkdir -pv "${DEST}" +cp -v "${COOKBOOK_SOURCE}/fonts/NotoColorEmoji.ttf" "${DEST}" +""" From b8de18bc92a17c2e8358a4ea9848fecaff40a3a7 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 14 Dec 2022 20:07:48 -0700 Subject: [PATCH 2/2] Fix hematite recipe --- recipes/hematite/recipe.sh | 16 ---------------- recipes/hematite/recipe.toml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 16 deletions(-) delete mode 100644 recipes/hematite/recipe.sh create mode 100644 recipes/hematite/recipe.toml diff --git a/recipes/hematite/recipe.sh b/recipes/hematite/recipe.sh deleted file mode 100644 index 14014f56f..000000000 --- a/recipes/hematite/recipe.sh +++ /dev/null @@ -1,16 +0,0 @@ -GIT=https://gitlab.redox-os.org/redox-os/hematite.git -GIT_UPSTREAM=https://github.com/PistonDevelopers/hematite.git -BUILD_DEPENDS=(llvm mesa zlib) -BRANCH=redox - -function recipe_build { - sysroot="$(realpath ../sysroot)" - cp -p "$ROOT/Xargo.toml" "Xargo.toml" - set -x - xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \ - -- \ - -L "${sysroot}/lib" \ - -C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc" - set +x - skip=1 -} diff --git a/recipes/hematite/recipe.toml b/recipes/hematite/recipe.toml new file mode 100644 index 000000000..e7cbb8924 --- /dev/null +++ b/recipes/hematite/recipe.toml @@ -0,0 +1,23 @@ +[source] +git = "https://gitlab.redox-os.org/redox-os/hematite.git" +branch = "redox" +upstream = "https://github.com/PistonDevelopers/hematite.git" + +[build] +template = "custom" +dependencies = [ + "llvm", + "mesa", + "zlib" +] +script = """ +cargo rustc \ + --target "$TARGET" \ + --release \ + --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ + -- \ + -L "${COOKBOK_SYSROOT}/lib" \ + -C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc" +mkdir -pv "${COOKBOOK_STAGE}/bin" +cp -v "target/${TARGET}/release/hematite" "${COOKBOOK_STAGE}/bin/hematite" +"""