I would like to create an Ubuntu package from a single bash script I wrote.
Is there a simple instruction how to build an Ubuntu package, that can be uploaded to launchpad? (I already created the PPA and uploaded my PGP- and SSH-keys).
I already created successfully a debian package (with Packages.gz
and a PPA hosted at github itself) but that package is missing the needed files that are required in this Ubuntu manual: Uploading a package to a PPA:
.dsc
.changes
.diff.gz
or.debian.tar.gz
- and optionally the
.orig.tar.gz
(if you useddebuild -S -sa
to build your package)
How do those files have to look like and how do I create them? (examples, commandline tools?)
pbuilder
which installs some GB on your system, is this really needed for my case? (only one bash script is tested and that works well) – rubo77 Jul 09 '14 at 15:10pbuilder
is the "package builder", that you will be better off if you do install it. Perhaps a package could be built by hand by someone with sufficient knowledge. – Charles Green Jul 09 '14 at 15:12debuild -S -sa
ordebuild -S -sd
.pbuilder
is when you want to test building the package in a clean chroot (where only the minimal Ubuntu packages are present. This is to test that you have covered all necessary dependencies. – saiarcot895 Jul 09 '14 at 16:10debuild -S -sa
I get this error:cannot find readable debian/changelog anywhere!
– rubo77 Jul 09 '14 at 16:19debian/{changelog,compat,control,copyright,rules}
and a few others. Most packaging tutorials talk about them. You can use the commanddh_make -s -n
will generate a set of sample files needed, which you can customize accordingly. – muru Jul 10 '14 at 01:34debian
folder must be a subfolder of your current directory. – saiarcot895 Jul 11 '14 at 02:10