summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-06-15 00:47:45 +0800
committerruki <[email protected]>2024-06-15 00:47:45 +0800
commitd60c319880c73efb7b5d8e363bd122f6cc1ddc1a (patch)
treed0b213e646cfb16d2557965bd0ef362a35a0d22f
parent6cf3886bd1c113d3189d075cc936fd609e284680 (diff)
fix prefix
-rw-r--r--xmake/plugins/pack/deb/main.lua2
-rwxr-xr-xxmake/scripts/xpack/deb/debian/rules2
2 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index 4dc23bc11..4e7bed7c4 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -41,7 +41,7 @@ end
-- translate the file path
function _translate_filepath(package, filepath)
- return filepath:replace(package:install_rootdir(), "debian/usr", {plain = true})
+ return filepath:replace(package:install_rootdir(), "$(PREFIX)", {plain = true})
end
-- get install command
diff --git a/xmake/scripts/xpack/deb/debian/rules b/xmake/scripts/xpack/deb/debian/rules
index 0fe50f5c8..50b1f377a 100755
--- a/xmake/scripts/xpack/deb/debian/rules
+++ b/xmake/scripts/xpack/deb/debian/rules
@@ -2,6 +2,8 @@
#export DH_VERBOSE = 1
+PREFIX=$(CURDIR)/debian/${PACKAGE_NAME}/usr
+
configure: configure-stamp
configure-stamp:
dh_testdir