How to create a PPA for C++ program?
Posted
by
piotr
on Ask Ubuntu
See other posts from Ask Ubuntu
or by piotr
Published on 2012-07-08T12:54:13Z
Indexed on
2012/07/08
15:23 UTC
Read the original article
Hit count: 451
application-development
|PPA
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 indebian
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.
© Ask Ubuntu or respective owner