From f67eed08def4d399d2b56dd2bc2f0aa3bd8c6b74 Mon Sep 17 00:00:00 2001 From: Rodrigo Linfati Date: Thu, 28 Jul 2011 17:01:13 +0200 Subject: [PATCH] Fix for scratchbox --- .gitignore | 4 ++ qtc_packaging/debian_fremantle/rules | 4 +- qtc_packaging/debian_fremantle/rules.real | 75 +++++++++++++++++++++++++++++ qtc_packaging/debian_harmattan/rules | 4 +- qtc_packaging/debian_harmattan/rules.real | 75 +++++++++++++++++++++++++++++ qtc_packaging/do-deb.sh | 14 ++++++ 6 files changed, 172 insertions(+), 4 deletions(-) create mode 100755 qtc_packaging/debian_fremantle/rules.real create mode 100755 qtc_packaging/debian_harmattan/rules.real create mode 100755 qtc_packaging/do-deb.sh diff --git a/.gitignore b/.gitignore index 1a83395..73b6d18 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ LatitudeUpdater.pro.user +debian/ +qtc_packaging/binary_fremantle/ +qtc_packaging/binary_harmattan/ + diff --git a/qtc_packaging/debian_fremantle/rules b/qtc_packaging/debian_fremantle/rules index 0a05e51..bec6627 100755 --- a/qtc_packaging/debian_fremantle/rules +++ b/qtc_packaging/debian_fremantle/rules @@ -12,14 +12,14 @@ configure: configure-stamp configure-stamp: dh_testdir - # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator + # qmake LatitudeUpdater.pro PREFIX=/usr touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir - # $(MAKE) # Uncomment this line for use without Qt Creator + # $(MAKE) touch $@ clean: diff --git a/qtc_packaging/debian_fremantle/rules.real b/qtc_packaging/debian_fremantle/rules.real new file mode 100755 index 0000000..a788d97 --- /dev/null +++ b/qtc_packaging/debian_fremantle/rules.real @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + qmake LatitudeUpdater.pro + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/googlelatitude install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/qtc_packaging/debian_harmattan/rules b/qtc_packaging/debian_harmattan/rules index 0a05e51..bec6627 100755 --- a/qtc_packaging/debian_harmattan/rules +++ b/qtc_packaging/debian_harmattan/rules @@ -12,14 +12,14 @@ configure: configure-stamp configure-stamp: dh_testdir - # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator + # qmake LatitudeUpdater.pro PREFIX=/usr touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir - # $(MAKE) # Uncomment this line for use without Qt Creator + # $(MAKE) touch $@ clean: diff --git a/qtc_packaging/debian_harmattan/rules.real b/qtc_packaging/debian_harmattan/rules.real new file mode 100755 index 0000000..a788d97 --- /dev/null +++ b/qtc_packaging/debian_harmattan/rules.real @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + qmake LatitudeUpdater.pro + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/googlelatitude install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/qtc_packaging/do-deb.sh b/qtc_packaging/do-deb.sh new file mode 100755 index 0000000..e9b642a --- /dev/null +++ b/qtc_packaging/do-deb.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +rm debian/* +cp qtc_packaging/debian_fremantle/* debian/ +cp qtc_packaging/debian_fremantle/rules.real debian/rules +~/QtSDK/Maemo/4.6.2/bin/mad dpkg-buildpackage -sa -S -rfakeroot -I.git -I.gitignore -Iqtc_packaging/binary_* +mv ../googlelatitude* qtc_packaging/binary_fremantle/ + +rm debian/* +cp qtc_packaging/debian_harmattan/* debian/ +cp qtc_packaging/debian_harmattan/rules.real debian/rules +~/QtSDK/Madde/bin/mad dpkg-buildpackage -sa -S -rfakeroot -I.git -I.gitignore -Iqtc_packaging/binary_* +mv ../googlelatitude* qtc_packaging/binary_harmattan + -- 1.7.9.5