site  contact  subhomenews

Build Debian package with Debreate

July 04, 2016 — BarryK
I don't know how well this works yet, have only just installed it, and tested that it does at least start up. Others might find it useful if I document what I needed to do to get this far.

Debreate is a GUI tool to create .deb Debian packages. The intention is to make it easy to knock up any .deb binary package.

Home page:
http://debreate.sourceforge.net/

I downloaded from SVN, which was last committed on 2015-12-24:
https://sourceforge.net/p/debreate/svnroot/HEAD/tree/trunk/

It is written in wxPython. The requirements are documented in two different files, readme.md and src/readme -- that information should have been put together.

Anyway, I am running Quirky Werewolf64 7.4, and I installed this lot:

libgstreamer0.10-0_0.10.36
libgstreamer-plugins-base0.10-0_0.10.36-2
libwxbase2.8-0_2.8.12.1+dfsg2
libwxgtk2.8-0_2.8.12.1+dfsg2
libwxgtk-media2.8-0_2.8.12.1+dfsg2
python-wxversion_3.0.2.0+dfsg
python-wxgtk2.8_2.8.12.1+dfsg2
libwxbase2.8-dev_2.8.12.1+dfsg2
libwxbase3.0-0v5_3.0.2+dfsg-1.2
wx2.8-headers_2.8.12.1+dfsg2
wx-common_3.0.2+dfsg-1.2
libwxgtk2.8-dev_2.8.12.1+dfsg2
libfakeroot_1.20.2
fakeroot_1.20.2
gvfs-common_1.24.2
gvfs-bin_1.24.2


...probably not all of those actually needed.

I edited 'Makefile', changed the DESTDIR from "/usr/local" to "/usr". I then ran "make install", which failed. It did install /usr/share/debreate.png and /usr/applications/debreate.desktop, however failed to install /usr/share/debreate/*.

I manually copied all content of 'src' folder to /usr/share/debreate, then created a script /usr/bin/debreate with:

#!/bin/sh
cd /usr/share/debreate
python launch.py


There is a set of videos that explain how Debreate works:
Part 1: https://www.youtube.com/watch?v=kx4D5eL6HKE
Part 2: https://www.youtube.com/watch?v=ZfwTEGhmQJQ
Part 3: https://www.youtube.com/watch?v=CFgCfemRCfU
Part 4: https://www.youtube.com/watch?v=5VPLHhEx_RY

There is also a manual, for an older version:
http://debreate.sourceforge.net/res/doc/usage_en.pdf

Comments

Here is a barebones, simplest way of creating a Debian package:

http://ubuntuforums.org/showthread.php?t=910717

That's my kind of instructions!

Tags: linux