mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
Merge branch 'openjazz-assets' into 'master'
Copy OpenJazz binary and package demo See merge request redox-os/cookbook!421
This commit is contained in:
commit
819eb501e4
@ -13,6 +13,7 @@ dependencies = [
|
||||
script = """
|
||||
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include"
|
||||
export CXXFLAGS="${CXXFLAGS} -I${COOKBOOK_SYSROOT}/include"
|
||||
export DATAPATH="/usr/share/games/openjazz/"
|
||||
|
||||
COOKBOOK_CONFIGURE="cmake"
|
||||
COOKBOOK_CONFIGURE_FLAGS=(
|
||||
@ -29,4 +30,15 @@ COOKBOOK_CONFIGURE_FLAGS=(
|
||||
)
|
||||
|
||||
cookbook_configure
|
||||
|
||||
ASSETS_DIR="${COOKBOOK_STAGE}${DATAPATH}"
|
||||
INSTALL_DIR="${COOKBOOK_STAGE}/usr/games"
|
||||
ICON_DIR="${COOKBOOK_STAGE}/ui/icons/apps"
|
||||
MAN_ROOT="${COOKBOOK_STAGE}/usr/share/man"
|
||||
mkdir -p "${ASSETS_DIR}" "${INSTALL_DIR}" "${ICON_DIR}" "${MAN_ROOT}"
|
||||
|
||||
cp -v "${COOKBOOK_SOURCE}/res/unix/OpenJazz.png" "${ICON_DIR}"
|
||||
# TODO: Man pages need to be compiled
|
||||
# cp -v "${COOKBOOK_SOURCE}/res/unix/OpenJazz.6" "${MAN_ROOT}/man6"
|
||||
mv OpenJazz "${INSTALL_DIR}"
|
||||
"""
|
||||
|
||||
@ -0,0 +1 @@
|
||||
a71e91cc0136449e58e922dc555180a84b04562f2c04c45d1545765dc77e32fb jazzdemo.rar
|
||||
4
recipes/wip/games/data/openjazz-shareware-data/manifest
Normal file
4
recipes/wip/games/data/openjazz-shareware-data/manifest
Normal file
@ -0,0 +1,4 @@
|
||||
name=Jazz Jackrabbit (shareware)
|
||||
category=Games
|
||||
binary=/usr/games/OpenJazz
|
||||
icon=/ui/icons/apps/OpenJazz.png
|
||||
20
recipes/wip/games/data/openjazz-shareware-data/recipe.toml
Normal file
20
recipes/wip/games/data/openjazz-shareware-data/recipe.toml
Normal file
@ -0,0 +1,20 @@
|
||||
# TODO: Requires unrar-free in the build container
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
ASSETS_DIR="${COOKBOOK_STAGE}/usr/share/games/openjazz/"
|
||||
APP_DIR="${COOKBOOK_STAGE}/ui/apps"
|
||||
|
||||
curl -vJL https://archive.org/download/jazz-jackrabbit/Jazz%20Jackrabbit.rar -o jazzdemo.rar
|
||||
sha256sum -c "${COOKBOOK_RECIPE}/jazzdemo.rar.sha"
|
||||
|
||||
unrar x -u jazzdemo.rar
|
||||
mkdir -p "${ASSETS_DIR}" "${APP_DIR}"
|
||||
unzip -uL Jazz/JAZZ.ZIP -d "${ASSETS_DIR}"
|
||||
|
||||
cp -v manifest "${APP_DIR}/openjazz"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [ "openjazz" ]
|
||||
Loading…
Reference in New Issue
Block a user