diff options
| author | ruki <[email protected]> | 2024-06-15 00:47:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-15 00:47:45 +0800 |
| commit | d60c319880c73efb7b5d8e363bd122f6cc1ddc1a (patch) | |
| tree | d0b213e646cfb16d2557965bd0ef362a35a0d22f | |
| parent | 6cf3886bd1c113d3189d075cc936fd609e284680 (diff) | |
fix prefix
| -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 |
