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?
lithian
to check that everything complies the directives (as double verification method). – Braiam Sep 19 '13 at 16:41dch --create
? – Braiam Sep 19 '13 at 16:47dh_make
butdch
. Remove the olddebian/
directory and run on the clean sourcesdch --create
– Braiam Sep 19 '13 at 16:54But if I make an empty debian folder and run dch --create, there is only a changelog.dch file created, nothing else.
– user2366975 Sep 19 '13 at 16:58dh_make
insteaddch
the second: are permissions set for the python script. blah blah, and final question (each of them in their own post) why does the .desktop files don't have executable permissions. Something like that. – Braiam Sep 19 '13 at 22:06