From ac1b88e760e5e5290496af91cdc12912f8574af8 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Tue, 15 Oct 2024 20:27:16 -0600
Subject: [PATCH] cosmic-store: enable pkgar feature and install app data

---
 recipes/tools/cosmic-store/recipe.toml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes/tools/cosmic-store/recipe.toml b/recipes/tools/cosmic-store/recipe.toml
index 36e9a17ff..fdf97a088 100644
--- a/recipes/tools/cosmic-store/recipe.toml
+++ b/recipes/tools/cosmic-store/recipe.toml
@@ -11,5 +11,13 @@ dependencies = [
 script = """
 export GETTEXT_DIR="${COOKBOOK_SYSROOT}"
 export GETTEXT_STATIC=1
-cookbook_cargo --no-default-features
+cookbook_cargo --no-default-features --features pkgar
+#TODO: install with just?
+APPID="com.system76.CosmicStore"
+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/"
 """
-- 
GitLab