Glam Prestige Journal

Bright entertainment trends with youth appeal.

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/.

  • 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?

20 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy