From 021ec7ddf0fb0e335492e5270621a669e262e63f Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Sat, 10 Feb 2024 18:08:27 -0700
Subject: [PATCH] Build boxedwine executable in build directory

---
 recipes/wip/emulators/boxedwine/recipe.toml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes/wip/emulators/boxedwine/recipe.toml b/recipes/wip/emulators/boxedwine/recipe.toml
index 57c61762d..2d2507c08 100644
--- a/recipes/wip/emulators/boxedwine/recipe.toml
+++ b/recipes/wip/emulators/boxedwine/recipe.toml
@@ -15,7 +15,6 @@ dependencies = [
     "zlib",
 ]
 script = """
-mkdir -p "${COOKBOOK_STAGE}/bin"
 cd "${COOKBOOK_SOURCE}/project/linux"
 #TODO: USE MAKEFILE
 #TODO: USE X64 CPU CORE
@@ -83,5 +82,7 @@ ${TARGET}-gcc -std=c++17 -O2 \
   -DSDL2=1 \
   -DSIMDE_SSE2_NO_NATIVE \
   -static \
-  -o "${COOKBOOK_STAGE}/bin/boxedwine"
+  -o "${COOKBOOK_BUILD}/boxedwine"
+mkdir -p "${COOKBOOK_STAGE}/bin"
+cp -v "${COOKBOOK_BUILD}/boxedwine" "${COOKBOOK_STAGE}/bin/boxedwine"
 """
-- 
GitLab