Control files for Debian package creation

This adds a "contrib/cutycapt" subdirectory which contains files needed to
build .deb packages, which should work at least with Debian Lenny (or newer)
and Ubuntu Hardy (or newer). For the moment this has been only tested on x86
and amd64 architectures, but should work everywhere QtWebKit does.
This commit is contained in:
Adrian Perez 2010-01-08 13:52:53 +01:00 committed by Javier Moran Rua
parent 0ea2cf7034
commit 5ae1ea2622
5 changed files with 104 additions and 0 deletions

24
contrib/cutycapt/README Normal file
View file

@ -0,0 +1,24 @@
CutyCapt Debian packaging
=========================
This directory includes control files for building CutyCapt packages for
Debian-based systems (including Ubuntu) so it can be cleanly installed.
Usage
=====
1. Get the CutyCapt sources, from http://cutycapt.sourceforge.net
2. Copy the included "debian" subdirectory over the CutyCapt source tree.
3. If needed, install the build-time dependencies::
apt-get install libqt4-dev
4. Create the package using the usual incantation::
debian/rules binary
5. Now you may install the created ``.deb`` package::
dpkg -i ../cutycapt_*.deb

View file

@ -0,0 +1,5 @@
cutycapt (20100108) lenny squeeze intrepid karmic; urgency=low
* Initial packaged release.
-- Adrian Perez <aperez@igalia.com> Fri, 08 Jan 2009 12:25:00 +0200

View file

@ -0,0 +1 @@
7

View file

@ -0,0 +1,14 @@
Source: cutycapt
Section: web
Priority: extra
Maintainer: Adrian Perez <aperez@igalia.com>
Build-Depends: debhelper (>= 7), libqt4-dev
Package: cutycapt
Architecture: any
Depends: libqt4-webkit
Description: Captures web pages to files in different formats.
CutyCapt is a small cross-platform command-line utility to capture
WebKit's rendering of a web page into a variety of vector and bitmap
formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP. See
IECapt for a similar tool based on Internet Explorer.

60
contrib/cutycapt/debian/rules Executable file
View file

@ -0,0 +1,60 @@
#! /usr/bin/make -f
configure: configure-stamp
configure-stamp:
dh_testdir
qmake CutyCapt.pro
touch $@
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
# dh_installchangelogs
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
# dh_installwm
# dh_installudev
# dh_lintian
# dh_undocumented
dh_installman
dh_link
dh_compress
dh_fixperms
# dh_perl
# dh_python
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: install
install: build
dh_testdir
dh_testroot
$(RM) build-stamp
install -g root -o root -m 755 -d $(CURDIR)/debian/cutycapt/usr/bin
install -g root -o root -m 755 CutyCapt $(CURDIR)/debian/cutycapt/usr/bin
binary: binary-arch binary-indep
build: build-stamp
build-stamp:
qmake CutyCapt.pro
$(MAKE)
touch $@
clean:
dh $@
.PHONY: build binary clean binary-arch install binary-indep configure