PDA

View Full Version : How to create a PPA and get it packaged correctly



MadsRH
November 12th, 2017, 01:50 AM
Hi

Can someone walk me through the steps of creating a PPA and making sure that it is packaged correctly?

I'm trying to set up af PPA (https://community.ubuntu.com/t/new-system-sounds-in-18-04/1557/12) for a sound theme (actually two themes). What files are needed in the folder for this to work and can both themes be included in the same PPA or is it better to create a separate?



Best regards
MadsRH

Frogs Hair
November 12th, 2017, 03:01 AM
Ubuntu uses .ogg files located in usr/share/sounds/. I would have a look there for starters and you'll find the old login sound in the ubuntu/stereo folder. double click the files to hear them.

You have to find a way to create the sounds you and others may like and save them to the ogg format. You can also search for instructions to enable the old desktop login sound.

Your PPA would require a script or .deb package to install and enable your new sounds. Launchpad.net explains how create a place to host your PPA.

Frogs Hair
November 12th, 2017, 03:21 AM
I used the following in startup applications to enable the old login sound.

Name: Gnome Login Sound
Command: /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
Comment: Play a sound at login

mc4man
November 12th, 2017, 05:00 AM
You can easily search 'debian packaging' for numerous links on how to create a proper source to upload to the ppa to be packaged.
What also can be useful is to apt some current Ubuntu sources & look at how they're done, what's in the debian/ files, ect. If possible choose sources similar to what you're doing.

(- your debian folder can be quite simple, only a few items required depending on source.., ex. in scr1 of simple binary install, scr. 2 of a library & headers. A theme shouldn't need much..

At the very least make sure devscripts is installed.

MadsRH
November 12th, 2017, 06:10 PM
Thanks for the reply :D

I've downloaded three sound themes to see how they've done. Only one of the three files has the debian folder.

Can anyone help me write the Makefile? :confused:

This is what I've got so far: 277500

I know it's not the best name, but it's memorable and better than untitled.

I want to use the CC-BY-SA licence. Could this be shipped without any problems (IF one should be so lucky to have this included on the .ISO) or would it be better to go with GPL3?

MadsRH
November 12th, 2017, 06:59 PM
I've put the files on github. Maybe that's an okay solution - it's definitely easier than uploading to a PPA ;)

https://github.com/madsrh/WoodenBeaver

MadsRH
November 15th, 2017, 12:45 AM
I’ve uploaded three different suggestions. to Github (see my post from two days ago) :smiley: PLEASE download, test and post feedback!!!

DEVELOPERS: Could someone please help me create the Makefile? and does this project need a debian folder?