Fix for scratchbox
authorRodrigo Linfati <rodrigo@linfati.cl>
Thu, 28 Jul 2011 15:01:13 +0000 (17:01 +0200)
committerRodrigo Linfati <rodrigo@linfati.cl>
Thu, 28 Jul 2011 15:01:13 +0000 (17:01 +0200)
.gitignore
qtc_packaging/debian_fremantle/rules
qtc_packaging/debian_fremantle/rules.real [new file with mode: 0755]
qtc_packaging/debian_harmattan/rules
qtc_packaging/debian_harmattan/rules.real [new file with mode: 0755]
qtc_packaging/do-deb.sh [new file with mode: 0755]

index 1a83395..73b6d18 100644 (file)
@@ -1 +1,5 @@
 LatitudeUpdater.pro.user
 LatitudeUpdater.pro.user
+debian/
+qtc_packaging/binary_fremantle/
+qtc_packaging/binary_harmattan/
+
index 0a05e51..bec6627 100755 (executable)
 configure: configure-stamp
 configure-stamp:
        dh_testdir
 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
        touch configure-stamp
 
 build: build-stamp
 
 build-stamp: configure-stamp  
        dh_testdir
-       # $(MAKE) # Uncomment this line for use without Qt Creator
+       # $(MAKE)
        touch $@
 
 clean: 
        touch $@
 
 clean: 
diff --git a/qtc_packaging/debian_fremantle/rules.real b/qtc_packaging/debian_fremantle/rules.real
new file mode 100755 (executable)
index 0000000..a788d97
--- /dev/null
@@ -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
index 0a05e51..bec6627 100755 (executable)
 configure: configure-stamp
 configure-stamp:
        dh_testdir
 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
        touch configure-stamp
 
 build: build-stamp
 
 build-stamp: configure-stamp  
        dh_testdir
-       # $(MAKE) # Uncomment this line for use without Qt Creator
+       # $(MAKE)
        touch $@
 
 clean: 
        touch $@
 
 clean: 
diff --git a/qtc_packaging/debian_harmattan/rules.real b/qtc_packaging/debian_harmattan/rules.real
new file mode 100755 (executable)
index 0000000..a788d97
--- /dev/null
@@ -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 (executable)
index 0000000..e9b642a
--- /dev/null
@@ -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
+