From 94de0061443fb669907ea4e3f04eef0f008a6ef9 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 17 Aug 2023 22:51:57 +0100 Subject: [PATCH] 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. --- Ports/freedink/package.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Ports/freedink/package.sh b/Ports/freedink/package.sh index 86b644258b..c4aa143cbf 100755 --- a/Ports/freedink/package.sh +++ b/Ports/freedink/package.sh @@ -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"