From 5ae1ea2622c82da28946e5f467604d1b7df8ac7d Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Fri, 8 Jan 2010 13:52:53 +0100 Subject: [PATCH] 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. --- contrib/cutycapt/README | 24 +++++++++++++ contrib/cutycapt/debian/changelog | 5 +++ contrib/cutycapt/debian/compat | 1 + contrib/cutycapt/debian/control | 14 ++++++++ contrib/cutycapt/debian/rules | 60 +++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 contrib/cutycapt/README create mode 100644 contrib/cutycapt/debian/changelog create mode 100644 contrib/cutycapt/debian/compat create mode 100644 contrib/cutycapt/debian/control create mode 100755 contrib/cutycapt/debian/rules diff --git a/contrib/cutycapt/README b/contrib/cutycapt/README new file mode 100644 index 000000000..f58791f77 --- /dev/null +++ b/contrib/cutycapt/README @@ -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 diff --git a/contrib/cutycapt/debian/changelog b/contrib/cutycapt/debian/changelog new file mode 100644 index 000000000..ea802499f --- /dev/null +++ b/contrib/cutycapt/debian/changelog @@ -0,0 +1,5 @@ +cutycapt (20100108) lenny squeeze intrepid karmic; urgency=low + + * Initial packaged release. + + -- Adrian Perez Fri, 08 Jan 2009 12:25:00 +0200 diff --git a/contrib/cutycapt/debian/compat b/contrib/cutycapt/debian/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/contrib/cutycapt/debian/compat @@ -0,0 +1 @@ +7 diff --git a/contrib/cutycapt/debian/control b/contrib/cutycapt/debian/control new file mode 100644 index 000000000..127d90d1b --- /dev/null +++ b/contrib/cutycapt/debian/control @@ -0,0 +1,14 @@ +Source: cutycapt +Section: web +Priority: extra +Maintainer: Adrian Perez +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. diff --git a/contrib/cutycapt/debian/rules b/contrib/cutycapt/debian/rules new file mode 100755 index 000000000..ce7aba984 --- /dev/null +++ b/contrib/cutycapt/debian/rules @@ -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