Table of Contents
Instructions for building Gtk2-WebKit
1. Build dependencies:
View current build results
Instructions for building a RPM package for Gtk2-WebKit
Easiest probably using cpan2rpm, so install it:
su -c 'yum install cpan2rpm rpmdevtools'
su -c 'zypper in cpan2rpm rpmdevtools'
Setup your rpmdev environment
Then you're ready to go, so run:
cpan2rpm –spec-only Gtk2-WebKit
This will generat a spec file in ~/rpmbuild/SPECS.
You'll need to edit it and change the line
%define maketest 1
%define maketest 0
or you'll get some errors.
Then, to build the package, run:
QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba $HOME/rpmbuild/SPECS/Gtk2-WebKit.spec
(adjust the path accordingly if your spec file is somewhere else.)
Instructions for building a debian package for libgtk2-webkit
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
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.
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 [email protected]
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 :)
mkdir build-tmp cd build-tmp dh-make-perl --build --cpan Gtk2-WebKit
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.