<div>Hi,</div>
<div>&nbsp;</div>
<div>The dpkg-build.sh is a script file i found to build the debian package.</div>
<div>Is there some other way to create it? I have gone through tutorial and </div>
<div>whatever procedure written there, is not working for me. I got some advices</div>
<div>as to put my code in already exisiting application package and build it.</div>
<div>I don&#39;t want to do that as&nbsp;size is increasing.</div>
<div>&nbsp;</div>
<div>Following is a script file to create debian for given target.........</div>
<div><font size="2">
<p>#!/bin/sh</p>
<p>#</p>
<p># This little script builds an appropriately-versioned .deb file depending</p>
<p># on your exact architecture (as defined in CFLAGS).</p>
<p># On an N800 (-mcpu=arm1136jf-s), the version is suffixed with &quot;-3&quot;.</p>
<p># On a 770 (-mcpu=arm926ej-s), the version is suffixed with &quot;-2&quot;.</p>
<p># In all other cases, the version is suffixed with &quot;-1&quot;.</p>
<p># </p>
<p>CHANGELOG=`dirname $0`/debian/changelog</p>
<p># Test whether we&#39;re running Chinook or a &quot;legacy&quot; Maemo.</p>
<p>MAEMO_VERSION=`pkg-config libosso --modversion | cut -d . -f 1`</p>
<p>if [ &quot;x$MAEMO_VERSION&quot; = &quot;x1&quot; ]</p>
<p>then</p>
<p>VERSION_SUFFIX=-os2006-os2007</p>
<p>else</p>
<p>VERSION_SUFFIX=-os2008</p>
<p>fi</p>
<p># Test if this is the armel build (as opposed to the x86 build)</p>
<p>GCC_HOST_IS_ARMEL=`gcc --version | head -n 1 | grep arm`</p>
<p>if [ &quot;x$GCC_HOST_IS_ARMEL&quot; != &quot;x&quot; ]; then</p>
<p>DBP_EXTRA=-B</p>
<p>fi</p>
<p>sed -i &quot;1,1s/(\([0-9.][0-9.]*\)[-a-zA-Z0-9]*)/(\1$VERSION_SUFFIX)/&quot; $CHANGELOG</p>
<p>dpkg-buildpackage -rfakeroot -i $DBP_EXTRA</p>
<p>sed -i &quot;1,1s/(\([0-9.][0-9.]*\)[-a-zA-Z0-9]*)/(\1)/&quot; $CHANGELOG</p></font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks and Regards,</div>
<div>Nisha<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 2/25/08, <b class="gmail_sendername">Kees Jongenburger</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:kees.jongenburger@gmail.com" target="_blank">kees.jongenburger@gmail.com</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sun, Feb 24, 2008 at 10:24 PM, nisha jain &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jain61@gmail.com" target="_blank">jain61@gmail.com</a>&gt; wrote:<br>
&gt;<br>&gt; Hi All,<br>&gt;<br>&gt; I am trying to make debian package for my application to port it to N800.<br>&gt; I am able to compile it in ARMEL mode but when i give ./dpkg-build.sh<br>&gt; command i am not able to get the debian package...My Makefile is very<br>
&gt;<br>&gt; simple having following rules...What i have to add to create debian package?<br>Hi<br><br>I think you need at least a&nbsp;&nbsp;make &quot;install&quot; target .<br>what is the dpkg-build.sh?<br><br>greetings<br><br><br>
&gt;<br>&gt; gcc -o N800App N800App.c `pkg-config gtk+-2.0 hildon-1 --cflags --libs`<br>&gt; -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2<br>&gt; -I/usr/include/hildon-fm-2 -lgtkdatabox<br>&gt;<br>&gt; I don&#39;t want to plug my code into some existing example application code and<br>
&gt; create debian package as<br>&gt; it is making binary huge...the dpkg-build.sh file contains following rules<br>&gt;<br>&gt;<br>&gt;<br>&gt; Regards,<br>&gt; Nisha<br>&gt; _______________________________________________<br>
&gt;&nbsp;&nbsp;maemo-developers mailing list<br>&gt;&nbsp;&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:maemo-developers@maemo.org" target="_blank">maemo-developers@maemo.org</a><br>&gt;&nbsp;&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
&gt;<br>&gt;<br></blockquote></div><br>