redox/recipes/cosmic/cosmic-edit/recipe.toml
2026-05-22 01:46:02 +07:00

33 lines
1.1 KiB
TOML

[source]
git = "https://github.com/pop-os/cosmic-edit.git"
rev = "epoch-1.0.8"
patches = [ "redox.patch" ]
[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
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/usr/share/ui/apps/30_cosmic-edit"
#TODO: install with just?
APPID="com.system76.CosmicEdit"
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/"
"""