Added build script of Debian
authorkopla <juha.paalijarvi@ixonos.com>
Mon, 1 Feb 2010 09:18:54 +0000 (09:18 +0000)
committerkopla <juha.paalijarvi@ixonos.com>
Mon, 1 Feb 2010 09:18:54 +0000 (09:18 +0000)
git-svn-id: file:///svnroot/qtrapids/trunk@74 42ac0dd5-4c8c-4c71-bb3e-ecdfe252ffda

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/qtrapids-gui.desktop [new file with mode: 0644]
debian/qtrapids-gui.install [new file with mode: 0644]
debian/qtrapids-gui.service [new file with mode: 0644]
debian/qtrapids-server.install [new file with mode: 0644]
debian/qtrapids-server.postinst [new file with mode: 0644]
debian/qtrapids.png [new file with mode: 0644]
debian/qtrapids.service [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3d9edae
--- /dev/null
@@ -0,0 +1,6 @@
+qtrapids (0.1-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Juha Paalij√§rvi <juha.paalijarvi@ixonos.com>  Wed, 27 Jan 2010 13:47:15 +0200 
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..494c70a
--- /dev/null
@@ -0,0 +1,24 @@
+This package was debianized by Juha Paalij√§rvi <juha.paalijarvi@ixonos.com> on
+Wed, 27 Jan 2010 13:47:15 +0200.
+
+Source code: https://garage.maemo.org/projects/qtrapids 
+
+Copyright: 2010 Ixonos Plc
+
+License: GPL-2
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 of the Licence.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/qtrapids-gui.desktop b/debian/qtrapids-gui.desktop
new file mode 100644 (file)
index 0000000..9be2f5e
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Name=QtRapids
+Exec=/usr/bin/qtrapids-gui
+Icon=qtrapids
+X-Osso-Service=com.ixonos.qtrapids_gui
+
diff --git a/debian/qtrapids-gui.install b/debian/qtrapids-gui.install
new file mode 100644 (file)
index 0000000..11d6073
--- /dev/null
@@ -0,0 +1,5 @@
+../qtrapids.png /usr/share/icons/hicolor/scalable/apps/
+../qtrapids.png /usr/share/icons/hicolor/64x64/apps/
+usr/bin/qtrapids-gui
+../qtrapids-gui.desktop /usr/share/applications/hildon/
+../qtrapids-gui.service /usr/share/dbus-1/services/
diff --git a/debian/qtrapids-gui.service b/debian/qtrapids-gui.service
new file mode 100644 (file)
index 0000000..3e04b97
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=com.ixonos.qtrapids_gui
+Exec=/usr/bin/qtrapids-gui
+
diff --git a/debian/qtrapids-server.install b/debian/qtrapids-server.install
new file mode 100644 (file)
index 0000000..5038b58
--- /dev/null
@@ -0,0 +1,3 @@
+usr/bin/qtrapids-server
+../qtrapids.service /usr/share/dbus-1/services/
+
diff --git a/debian/qtrapids-server.postinst b/debian/qtrapids-server.postinst
new file mode 100644 (file)
index 0000000..50509f2
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+# postinst script for qtrapids-server
+#
+# see: dh_installdeb(1)
+
+touch /home/user/QtRapids.sqlite
+chown user:users /home/user/QtRapids.sqlite
+
+exit 0
diff --git a/debian/qtrapids.png b/debian/qtrapids.png
new file mode 100644 (file)
index 0000000..de24296
Binary files /dev/null and b/debian/qtrapids.png differ
diff --git a/debian/qtrapids.service b/debian/qtrapids.service
new file mode 100644 (file)
index 0000000..2e89c9a
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=com.ixonos.qtrapids
+Exec=/usr/bin/qtrapids-server
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..a550c35
--- /dev/null
@@ -0,0 +1,61 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+configure:
+       dh_testdir
+       cmake .
+       touch $@
+build: configure
+       $(MAKE)
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       -$(MAKE) clean
+       rm -f CMakeCache.txt
+       rm -rf `find -name CMakeFiles` 
+       rm -f configure
+       rm -f build
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+       dh_install --sourcedir=debian/tmp
+       
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       maemo-optify
+       dh_builddeb
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install