diff options
| author | ruki <[email protected]> | 2024-06-13 22:44:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-13 22:44:51 +0800 |
| commit | 32aff4807758e70de86bd0c41486a7493dcebb10 (patch) | |
| tree | 4d3ce4cb4aceeffa7aa9cc1d013151c667db0270 | |
| parent | eaa2d3484fe75d1c7ca228fa94091936dddaffd6 (diff) | |
init deb spec
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index b2629ef04..d64204ae6 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -36,6 +36,14 @@ end -- pack deb package function _pack_deb(debuild, package) + + -- install the initial specfile + local specfile = path.join(package:buildir(), "debian") + if not os.isdir(specfile) then + local specfile_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "deb", "debian") + os.cp(specfile_template, specfile) + end + end function main(package) |
