1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

Ports/freedink: Use make install rather than copying files manually

This ensures the required binary files are installed to the correct
location and data files are copied to their default location so the
`--refdir` argument isn't needed when launching the game.
This commit is contained in:
Tim Ledbetter 2023-08-17 22:51:57 +01:00 committed by Tim Schumacher
parent cecc554102
commit 94de006144

View file

@ -12,16 +12,13 @@ files=(
)
configopts=("--prefix=/usr/local" "--disable-rpath" "--disable-tests" "LDFLAGS=-ldl -lfontconfig -lxml2")
resource_path="/usr/local/share/games/dink"
launcher_name="FreeDink"
launcher_category=Games
launcher_command="/usr/local/bin/freedink --software-rendering --truecolor --refdir ${resource_path}"
launcher_command='/usr/local/bin/freedink --software-rendering --truecolor'
install() {
target_dir="${SERENITY_INSTALL_ROOT}${resource_path}"
run_nocd mkdir -p ${target_dir}
run_nocd cp -R ${freedink_data}/* ${target_dir}
run_nocd make DESTDIR="${SERENITY_INSTALL_ROOT}" -C "${freedink_data}" install
run make DESTDIR="${SERENITY_INSTALL_ROOT}" "${installopts[@]}" install
}
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2 -I${SERENITY_INSTALL_ROOT}/usr/local/include/libxml2"