From 32aff4807758e70de86bd0c41486a7493dcebb10 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Jun 2024 22:44:51 +0800 Subject: init deb spec --- xmake/plugins/pack/deb/main.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.3.1