File 0001-install-tarInstall-use-INSTALL.im-macros.patch of Package icmake

From ba0e87d2d6122daf5252f8ee1018c8c0375cfe09 Mon Sep 17 00:00:00 2001
From: val4oss <val4oss@pm.me>
Date: Mon, 27 Oct 2025 17:34:35 +0100
Subject: [PATCH] install: tarInstall use INSTALL.im macros

Signed-off-by: val4oss <val4oss@pm.me>
---
 icmake/install | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/icmake/install b/icmake/install
index b223abff..61e7a6d5 100755
--- a/icmake/install
+++ b/icmake/install
@@ -111,7 +111,8 @@ scripts()
 tarInstall()
 {
     echo installing tmp/${1} to ${2}
-    (cd tmp; tar cf - $1) | (cd $storageDir; tar xf -)
+    try mkdir -p ${2}
+    (cd tmp/${1}; tar cf - .) | (cd ${2}; tar xf -)
     [ "$?" -eq "0" ] || exit 1
 }
 
-- 
2.51.0

openSUSE Build Service is sponsored by