summaryrefslogtreecommitdiff
path: root/core/xpack.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/xpack.lua')
-rw-r--r--core/xpack.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/xpack.lua b/core/xpack.lua
index f8a1726cc..94e21f7a2 100644
--- a/core/xpack.lua
+++ b/core/xpack.lua
@@ -127,6 +127,6 @@ xpack("xmakesrc")
if format == "runself" then
batchcmds:runv("./scripts/get.sh", {"__local__"})
elseif format == "srpm" then
- batchcmds:runv("make", {"install", "PREFIX=%{buildroot}"})
+ batchcmds:runv("make", {"install", path(package:install_rootdir(), function (p) return "PREFIX=" .. p end)})
end
end)