Skip to content
Snippets Groups Projects
Verified Commit 962caa65 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

cosmic-files: add gettext dependency

parent b580c8ea
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,26 @@ branch = "master" ...@@ -4,9 +4,26 @@ branch = "master"
[build] [build]
template = "custom" template = "custom"
dependencies = [
"gettext",
"libiconv",
]
script = """ script = """
cookbook_cargo --no-default-features --features winit export GETTEXT_DIR="${COOKBOOK_SYSROOT}"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps" export GETTEXT_STATIC=1
# Hack to link libiconv, which gettext-sys does not link
"${COOKBOOK_CARGO}" rustc \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--release \
--bin cosmic-files \
--no-default-features \
--features desktop,winit \
-- \
-L "${COOKBOOK_SYSROOT}/lib" \
-C link-arg="-liconv"
mkdir -pv "${COOKBOOK_STAGE}/usr/bin/"
cp -v "target/${TARGET}/release/cosmic-files" "${COOKBOOK_STAGE}/usr/bin/"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps/"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/20_cosmic-files" cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/20_cosmic-files"
#TODO: install with just? #TODO: install with just?
APPID="com.system76.CosmicFiles" APPID="com.system76.CosmicFiles"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment