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?

  • 1
    Did you gave a look to this askubuntu.com/q/90764/169736? – Braiam Sep 19 '13 at 16:05
  • Now I did. I saw an install file there about which I have already read. After my dh_make, there was no install file in the debian-directory. So if i create the file manually and specify all places in the 'file path' 'copy file to this path' -manner, installing would work (e.g. with apt-get install name)? – user2366975 Sep 19 '13 at 16:39
  • You should create files as you see fit that comply with the manual/usage of the guides, after you think everything is done you should run lithian to check that everything complies the directives (as double verification method). – Braiam Sep 19 '13 at 16:41
  • So you mean that the install-file will be respected by dpkg-build? Don't want to mix things that aren't supposed to be used together – user2366975 Sep 19 '13 at 16:45
  • Did you ran dch --create? – Braiam Sep 19 '13 at 16:47

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.