Add cosmic-text recipe

This commit is contained in:
Jeremy Soller 2022-10-24 21:22:24 -06:00
parent 3e081637a6
commit 67438379aa
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[patch.crates-io]
libc = { git = "https://gitlab.redox-os.org/redox-os/liblibc.git", branch = "redox-0.2.136" }

View File

@ -0,0 +1,17 @@
GIT=https://github.com/pop-os/cosmic-text.git
BRANCH=main
function recipe_build {
sysroot="$(realpath ../sysroot)"
set -x
cargo build --target "$TARGET" --release --package editor-orbclient
set +x
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$dest/bin"
cp -v "target/${TARGET}/release/editor-orbclient" "$dest/bin/cosmic-text"
skip=1
}