Commit 4b97b06a72877f7a36bb6f838a834a7a3f047cab

Thomas de Grivel 2023-01-24T10:11:06

fix fake

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/shpkg.subr b/lib/shpkg.subr
index 8e4ef6a..26287ed 100644
--- a/lib/shpkg.subr
+++ b/lib/shpkg.subr
@@ -239,7 +239,7 @@ shpkg_fake () {
         verbose mkdir -p "${SHPKG_REPO_FAKE_DIR}"
         if [ -f "${SHPKG_REPO_SRC_DIR}/Makefile" ]; then
             ( verbose cd "${SHPKG_REPO_SRC_DIR}" &&
-                  verbose make DESTDIR="${SHPKG_REPO_FAKE_DIR}" install; )
+                  verbose make PREFIX= DESTDIR="${SHPKG_REPO_FAKE_DIR}" install; )
         elif [ -f "${SHPKG_REPO_SRC_DIR}/CMakeLists.txt" ]; then
             cmake --install "${SHPKG_OBJ_DIR}/${SHPKG_REPO_DIR}" --prefix "${SHPKG_REPO_FAKE_DIR}"
         fi