This is an old revision of the document!
−Table of Contents
Instructions for building a debian package for libgtk2-webkit
1. Build dependencies:
View current build results
Go here if you wish to browse through the source
2. Using debhelper Script
You may either build the package remotely or local, whichever way you prefer. I recommend the debhelper scripts for automagic:
Build-Depends: debhelper (>= 7), perl (>= 5.8.0)
These are the dependencies which were added through $shlibs:Depends and $misc:Depends during build:
Depends: perl (>= 5.8.0), libatk1.0-0 (>= 1.20.0), libc6 (>= 2.2.5), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>= 2.16.0), libpango1.0-0 (>= 1.14.0), libsoup2.4-1 (>= 2.25.4), libwebkit-1.0-2 (>= 1.1.1), zlib1g (>= 1:1.1.4), libgtk2-perl
Local build
If you want to build it locally without using the cpan, download the source package extract it /some/where, change into the directory and simply build using dh-make-perl.
dh-make-perl --help
wget http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Gtk2-WebKit-0.04.tar.gz tar xf Gtk2-WebKit-0.04.tar.gz cd Gtk2-WebKit-0.04 dh-make-perl --build
The package will be created with $USER as maintainer and <$USER@ > as email adress, so, if its not in your $ENV, you may want to use
--email foo@bar.org
together with dh-perl-make (i.e. for signing the pkg with your pub key.) Thats about it, the package creation should leave a package in your upstream directory. In order to install
cd .. dpkg -i libgtk2-webkit-perl_*.deb
in the upstream directory. So if you downloaded the .tar.gz to your home directory, thats where it goes. Now install it using your favorite packagemanager, relaunch gmusicbrowser, and enjoy webkit :)
CPAN
mkdir build-tmp cd build-tmp dh-make-perl --build --cpan Gtk2-WebKit
Discussion
I couldn't get this to work on ubuntu (9.04), it complains that it can't find the package Gtk2, while it's clearly installed.
This is actually a little misleading about debian in general, gtk2 as dependency actually means if you wanna build a package against it, you need to install gtk2-dev…
Should work then.