From d6a499b29fd5c42dcdf70a9b2de4815c37549f9c Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Tue, 28 Jan 2025 22:13:10 +1100 Subject: [PATCH] feat(cosmic-files): dynamic Signed-off-by: Anhad Singh --- recipes/tools/cosmic-files/recipe.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/recipes/tools/cosmic-files/recipe.toml b/recipes/tools/cosmic-files/recipe.toml index a6b481ac4..779f2a2b0 100644 --- a/recipes/tools/cosmic-files/recipe.toml +++ b/recipes/tools/cosmic-files/recipe.toml @@ -9,8 +9,11 @@ dependencies = [ "libiconv", ] script = """ +DYNAMIC_INIT +if [[ -n "$COOKBOOK_PREFER_STATIC" ]]; then + export GETTEXT_STATIC=1 +fi export GETTEXT_DIR="${COOKBOOK_SYSROOT}" -export GETTEXT_STATIC=1 # Hack to link libiconv, which gettext-sys does not link "${COOKBOOK_CARGO}" rustc \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ @@ -34,3 +37,11 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/" cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/" """ + +[package] +dependencies = [ + "libgcc", + "gettext", + "libiconv" +] +