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:
parent
9267e24741
commit
27b08c0c74
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/27b08c0c74 Pull-request: https://github.com/SerenityOS/serenity/pull/20607 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/timschumi
1 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue