Can I get an installation script with-package-format=deb

Can I get an installation script that just created when you use the flag - with-package-format = rpm

It is not clear what you mean with “installation script”. If it is about building, look in the lower part of https://wiki.documentfoundation.org/Development/BuildingOnLinux.