From 27b08c0c74ccb5d9f3e603ef47c4dbdc748dd05e Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Wed, 16 Aug 2023 22:19:58 +0100 Subject: [PATCH] Ports/julius: Add a launcher entry and setup instructions The CMake-generated Makefile's install target is also no longer used, as the `julius` binary is the only file we actually need to copy. --- Ports/julius/package.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Ports/julius/package.sh b/Ports/julius/package.sh index dea2902b24..09c2048d91 100755 --- a/Ports/julius/package.sh +++ b/Ports/julius/package.sh @@ -13,11 +13,28 @@ depends=( configopts=( "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" ) +data_dir='/home/anon/Games/julius' +launcher_name='Julius' +launcher_category='Games' +launcher_workdir="${data_dir}/" +launcher_command="/usr/local/bin/julius" +icon_file='res/julius_32.png' configure() { run cmake "${configopts[@]}" . } install() { - run make "${installopts[@]}" install + run_nocd mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin/" + run cp -r julius "${SERENITY_INSTALL_ROOT}/usr/local/bin/" +} + +post_install() { + echo + echo 'Julius is installed!' + echo + echo 'Make sure your game files are present in the following directory:' + echo " Inside SerenityOS: ${data_dir}/" + echo " Outside SerenityOS: $(realpath ${SERENITY_INSTALL_ROOT}/${data_dir})/" + echo }