diff options
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 | ||||
| -rwxr-xr-x | xmake/scripts/xpack/deb/debian/rules | 2 |
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 |
