3

I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program would not work because I did not specify where it should install the files. After creating and configuring the debian folder (after dh_make), my project folder looks like:

/main.py (the programm)
/icons/...
/saves/...
/debian/... 

Now my questions:

  • How/where (perhaps in control or rules in /debian?) do I specify where to copy the first 3 files/folders to? I would like to copy my whole program including the main script to /opt/extras.ubuntu.com/program-name.

  • Moreover I'd also need to copy a .desktop file to /usr/share/applications that executes the main.py script.

Where do I place the needed instructions?

EDIT

As the dh_make did not do itself but can be found in the docs here, I made an install-file in the /debian directory containing the files to be moved. After a debuild -S there was a subdirectory named like the package created, and in its tree structure (like the destination described in the install file) the files were placed. So I guess it will work on a regular install. Only one more question: How can I set chmod+x to those installed files?

Elder Geek
  • 36,752

0 Answers0