mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
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
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
Add a link
Reference in a new issue