Debian packaging
authorTorste Aikio <zokier@zokier.laptop>
Mon, 24 May 2010 07:52:04 +0000 (10:52 +0300)
committerTorste Aikio <zokier@zokier.laptop>
Mon, 24 May 2010 07:52:04 +0000 (10:52 +0300)
12 files changed:
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/manpage.1 [new file with mode: 0644]
debian/rules [new file with mode: 0755]
irwi.pro [new file with mode: 0644]
src/irwi.pro [deleted file]
src/src.pro [new file with mode: 0644]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..bba6b1b
--- /dev/null
@@ -0,0 +1,6 @@
+irwi for Debian
+---------------
+
+Warning: This app replaces your /etc/lircd.conf.
+
+ -- Torste Aikio <zokier@unknown>  Mon, 24 May 2010 10:17:33 +0300
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..534066b
--- /dev/null
@@ -0,0 +1,6 @@
+irwi (0.1-1) unstable; urgency=low
+
+  * Initial release 
+
+ -- Torste Aikio <zokier@unknown>  Mon, 24 May 2010 10:17:33 +0300
+
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/control b/debian/control
new file mode 100644 (file)
index 0000000..cbdeb19
--- /dev/null
@@ -0,0 +1,12 @@
+Source: irwi
+Section: unknown
+Priority: extra
+Maintainer: Torste Aikio <zokier@unknown>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: irwi
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Small widget to control your TV etc
+  This widget has basic controls to control IR controlled devices.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..ec408ed
--- /dev/null
@@ -0,0 +1,18 @@
+This package was debianized by Torste Aikio <zokier@unknown> on
+Mon, 24 May 2010 10:17:33 +0300.
+
+It was downloaded from an unknown corner of the internet.
+
+Upstream Author: Torste Aikio, Jari Järvi, Joonas Partanen
+
+Copyright: 2010 Torste Aikio, Jari Järvi, Joonas Partanen
+
+License: GPL
+
+The Debian packaging is (C) 2010, Torste Aikio <zokier@unknown> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+
+qmaemo5homescreenadaptor is (C) 2010 Nokia Corporation and is
+licensed under the LGPL.
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..e772481
--- /dev/null
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/manpage.1 b/debian/manpage.1
new file mode 100644 (file)
index 0000000..196501f
--- /dev/null
@@ -0,0 +1,43 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH IRWI 1 "May 24, 2010"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+irwi \- Ir control widget
+.SH SYNOPSIS
+.B irwi
+.SH DESCRIPTION
+This manual page documents briefly the
+.B irwi
+command.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBirwi\fP is a widget which allows the user to control various devices 
+(TV etc) via Lirc.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH AUTHOR
+irwi was written by Torste Aikio, Jari Järvi and Joonas Partanen.
+.PP
+This manual page was written by Torste Aikio <zokier@unknown>,
+for the Debian project (but may be used by others).
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..fb2d8db
--- /dev/null
@@ -0,0 +1,98 @@
+#!/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
+
+
+
+
+CFLAGS = -Wall
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #docbook-to-man debian/irwi.sgml > irwi.1
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       -$(MAKE) clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/irwi.
+       $(MAKE) DESTDIR=$(CURDIR)/debian/irwi 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/irwi.pro b/irwi.pro
new file mode 100644 (file)
index 0000000..8d8feb2
--- /dev/null
+++ b/irwi.pro
@@ -0,0 +1,9 @@
+QMAKEVERSION = $$[QMAKE_VERSION]
+ISQT4 = $$find(QMAKEVERSION, ^[2-9])
+isEmpty( ISQT4 ) {
+error("Use the qmake include with Qt4.6 or greater, on Debian that is qmake-qt4");
+}
+
+TEMPLATE = subdirs
+SUBDIRS  = src
+
diff --git a/src/irwi.pro b/src/irwi.pro
deleted file mode 100644 (file)
index daf7e5f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-TEMPLATE = app
-
-SOURCES += main.cpp
-SOURCES += mainwidget.cpp
-SOURCES += irctrl.cpp
-SOURCES += settingsdlg.cpp
-HEADERS += mainwidget.h
-HEADERS += irctrl.h
-HEADERS += settingsdlg.h
-
-include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
-
-desktop.path = /usr/share/applications/hildon-home
-desktop.files = qt-homescreen-example.desktop
-
-target.path = /usr/lib/hildon-desktop
-INSTALLS += target desktop
-
-QT += network
-
diff --git a/src/src.pro b/src/src.pro
new file mode 100644 (file)
index 0000000..4f0450c
--- /dev/null
@@ -0,0 +1,56 @@
+TEMPLATE = app
+
+SOURCES += main.cpp
+SOURCES += mainwidget.cpp
+SOURCES += irctrl.cpp
+SOURCES += settingsdlg.cpp
+HEADERS += mainwidget.h
+HEADERS += irctrl.h
+HEADERS += settingsdlg.h
+
+include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
+
+desktop.path = /usr/share/applications/hildon-home
+desktop.files = irwi.desktop
+
+target.path = /usr/lib/hildon-desktop
+#INSTALLS += target desktop
+
+QT += network
+
+  unix {
+    #VARIABLES
+    isEmpty(PREFIX) {
+        PREFIX = /usr/local
+  }
+
+BINDIR = $$PREFIX/bin
+DATADIR =$$PREFIX/share
+
+DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
+#MAKE INSTALL
+
+INSTALLS += target desktop service iconxpm icon26 icon48 icon64
+
+  target.path =$$BINDIR
+
+  desktop.path = $$DATADIR/applications/hildon
+  desktop.files += $${TARGET}.desktop
+
+  service.path = $$DATADIR/dbus-1/services
+  service.files += $${TARGET}.service
+
+  iconxpm.path = $$DATADIR/pixmap
+  iconxpm.files += ../data/maemo/$${TARGET}.xpm
+
+  icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+  icon26.files += ../data/26x26/$${TARGET}.png
+
+  icon48.path = $$DATADIR/icons/hicolor/48x48/apps
+  icon48.files += ../data/48x48/$${TARGET}.png
+
+  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+  icon64.files += ../data/64x64/$${TARGET}.png
+}
+