This commit is contained in:
Jeremy Soller 2022-12-15 11:53:49 -07:00
commit 535ac222c8
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
3 changed files with 33 additions and 16 deletions

View File

@ -1,16 +0,0 @@
GIT=https://gitlab.redox-os.org/redox-os/hematite.git
GIT_UPSTREAM=https://github.com/PistonDevelopers/hematite.git
BUILD_DEPENDS=(llvm mesa zlib)
BRANCH=redox
function recipe_build {
sysroot="$(realpath ../sysroot)"
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
set -x
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \
-L "${sysroot}/lib" \
-C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc"
set +x
skip=1
}

View File

@ -0,0 +1,23 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/hematite.git"
branch = "redox"
upstream = "https://github.com/PistonDevelopers/hematite.git"
[build]
template = "custom"
dependencies = [
"llvm",
"mesa",
"zlib"
]
script = """
cargo rustc \
--target "$TARGET" \
--release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
-- \
-L "${COOKBOK_SYSROOT}/lib" \
-C link-args="-Wl,-Bstatic $("${TARGET}-pkg-config" --libs osmesa) -lz -lstdc++ -lc -lgcc"
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "target/${TARGET}/release/hematite" "${COOKBOOK_STAGE}/bin/hematite"
"""

View File

@ -0,0 +1,10 @@
[source]
git = "https://github.com/googlefonts/noto-emoji.git"
[build]
template = "custom"
script = """
DEST="${COOKBOOK_STAGE}/ui/fonts/Emoji/Noto"
mkdir -pv "${DEST}"
cp -v "${COOKBOOK_SOURCE}/fonts/NotoColorEmoji.ttf" "${DEST}"
"""