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

Add WIP classicube and libcosmic recipes

parent c7f8d1e3
No related branches found
No related tags found
No related merge requests found
[source]
git = "https://github.com/jackpot51/ClassiCube.git"
[build]
template = "custom"
dependencies = [
"liborbital",
"llvm",
"mesa",
"sdl2",
"zlib",
]
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" -C src redox
mkdir -pv "${COOKBOOK_STAGE}/games/classicube"
cp -v "src/ClassiCube" "${COOKBOOK_STAGE}/games/classicube"
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/ui/apps/classicube"
mkdir -pv "${COOKBOOK_STAGE}/ui/icons/apps"
cp -v "${COOKBOOK_SOURCE}/misc/CCicon.png" "${COOKBOOK_STAGE}/ui/icons/apps/classicube.png"
"""
[source]
git = "https://gitlab.redox-os.org/redox-os/libcosmic.git"
branch = "redox"
[build]
template = "custom"
dependencies = [
"llvm",
"mesa",
"zlib"
]
script = """
set -x
${COOKBOOK_CARGO} rustc \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--package cosmic \
-- \
-L "${COOKBOOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/cosmic" "${COOKBOOK_STAGE}/bin/libcosmic"
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment