How to create a PPA for C++ program?
- by piotr
My questions are:
c++/gtkmm project created with NetBeans. How to make package to PPA from this?
I have created target files structure (*.desktop, iconfile, ui glade files).
Binary goes to /opt/extras.ubuntu.com/myagenda/bin/myagenda.
There is also a folder of glade files, that must go to /opt/extras.ubuntu.com/myagenda/bin/myagenda/ui.
Desktop file goes to /usr/share/applications/myagenda.desktop.
Icon goes to /usr/share/icons/hicolor/scalable/apps/myagenda.svg
As you see, there is really small amount of files.
Now, how to manage all this stuff, to create package on PPA, which knows where and how put this files to their targets?
+-- opt
¦ +-- extras.ubuntu.com
¦ +-- myagenda
¦ +-- bin
¦ ¦ +-- myagenda
¦ +-- ui
¦ +-- item_btn_delete.png
¦ +-- item_btn_edit.png
¦ +-- myagenda.png
¦ +-- myagenda.svg
¦ +-- reminder.png
¦ +-- ui.glade
+-- usr
+-- share
+-- applications
¦ +-- myagenda.desktop
+-- icons
+-- hicolor
+-- scalable
+-- apps
+-- myagenda.svg
Update:
Created install file in debian directory with targets:
data/myagenda /opt/extras.ubuntu/com/myagenda/bin
data/ui/* /opt/extras.ubuntu/com/myagenda/ui
data/myagenda.desktop /usr/share/applications
data/myagenda.svg /usr/share/icons/hicolor/scalable/apps
After dpkg-buildpackage it builds, but for amd64 architecture. Now, trying to change that to i386.