From 5676d5f76351566937689bbcbf8dbee37046cb96 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 24 May 2026 11:07:01 -0600 Subject: [PATCH] Add cosmic-monitor, broken until rust is updated --- recipes/cosmic/cosmic-monitor/recipe.toml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes/cosmic/cosmic-monitor/recipe.toml diff --git a/recipes/cosmic/cosmic-monitor/recipe.toml b/recipes/cosmic/cosmic-monitor/recipe.toml new file mode 100644 index 00000000..638cd156 --- /dev/null +++ b/recipes/cosmic/cosmic-monitor/recipe.toml @@ -0,0 +1,28 @@ +[source] +git = "https://github.com/pop-os/cosmic-monitor.git" + +[build] +template = "custom" +dependencies = [ + "gettext", + "libxkbcommon", +] +script = """ +DYNAMIC_INIT +export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr" +if [ "${COOKBOOK_DYNAMIC}" != "1" ] +then + # Statically linked i586 and riscv64gc need libiconv manually linked + export RUSTFLAGS="${RUSTFLAGS} -liconv" +fi +cookbook_cargo --no-default-features + +#TODO: install with just? +APPID="com.system76.CosmicMonitor" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/applications/" +cp -v "${COOKBOOK_SOURCE}/res/${APPID}.desktop" "${COOKBOOK_STAGE}/usr/share/applications/" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/metainfo/" +cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/share/metainfo/" +mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/" +cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/" +"""