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.
This commit is contained in:
Tim Ledbetter 2023-08-16 22:19:58 +01:00 committed by Andrew Kaster
parent 9267e24741
commit 27b08c0c74
Notes: sideshowbarker 2024-07-17 04:01:41 +09:00

View File

@ -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
}