diff --git a/recipes/games/openjazz/recipe.toml b/recipes/games/openjazz/recipe.toml index 47098190a76663ef25f741542113057e85bf10ed..676b85c69ed6df564a45cdca93234f0aca3ec562 100644 --- a/recipes/games/openjazz/recipe.toml +++ b/recipes/games/openjazz/recipe.toml @@ -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}" """ diff --git a/recipes/wip/games/data/openjazz-shareware-data/jazzdemo.rar.sha b/recipes/wip/games/data/openjazz-shareware-data/jazzdemo.rar.sha new file mode 100644 index 0000000000000000000000000000000000000000..f1a300db3e2d72d6f28b9351b72ea0fe1da334fa --- /dev/null +++ b/recipes/wip/games/data/openjazz-shareware-data/jazzdemo.rar.sha @@ -0,0 +1 @@ +a71e91cc0136449e58e922dc555180a84b04562f2c04c45d1545765dc77e32fb jazzdemo.rar diff --git a/recipes/wip/games/data/openjazz-shareware-data/manifest b/recipes/wip/games/data/openjazz-shareware-data/manifest new file mode 100644 index 0000000000000000000000000000000000000000..ae844ad7b8cdcbc31de0ac9cfa612993d8083a2d --- /dev/null +++ b/recipes/wip/games/data/openjazz-shareware-data/manifest @@ -0,0 +1,4 @@ +name=Jazz Jackrabbit (shareware) +category=Games +binary=/usr/games/OpenJazz +icon=/ui/icons/apps/OpenJazz.png diff --git a/recipes/wip/games/data/openjazz-shareware-data/recipe.toml b/recipes/wip/games/data/openjazz-shareware-data/recipe.toml new file mode 100644 index 0000000000000000000000000000000000000000..3fca5d81692a83214e5276f8320407e814926297 --- /dev/null +++ b/recipes/wip/games/data/openjazz-shareware-data/recipe.toml @@ -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" ]