I'm trying to create a .deb package the right way. I set up a folder containing a DEBIAN directory with a control file. I also placed the source code for SupertuxKart, including assets and code, right beside the DEBIAN folder. However, when I run the command, I get an error saying 'dpkg-deb: error: --build needs a argument.' I feel like something's off with my directory structure, but I thought I set it up correctly. Can someone help me figure this out?
2 Answers
You might want to try using `dpkg-buildpackage -us -uc` instead of `dpkg-deb --build`. I find that it might handle things a bit differently, so give it a shot!
It seems like you ran `dpkg-deb --build` without specifying the directory properly. Check out the man page; it’ll show you how to use it correctly. Also, remember that `dpkg-deb --build` is used for binaries, not source code, so you need to ensure you’re targeting the right files in your commands.

Got it! What's the command to compile the source code for creating a .deb package? I'm more familiar with using 'make' and checkinstall, but I want to learn the official method.