[maemo-developers] Making debian package...

From: nisha jain jain61 at gmail.com
Date: Fri Feb 29 01:16:47 EET 2008
Hi,

The dpkg-build.sh is a script file i found to build the debian package.
Is there some other way to create it? I have gone through tutorial and
whatever procedure written there, is not working for me. I got some advices
as to put my code in already exisiting application package and build it.
I don't want to do that as size is increasing.

Following is a script file to create debian for given target.........

#!/bin/sh

#

# This little script builds an appropriately-versioned .deb file depending

# on your exact architecture (as defined in CFLAGS).

# On an N800 (-mcpu=arm1136jf-s), the version is suffixed with "-3".

# On a 770 (-mcpu=arm926ej-s), the version is suffixed with "-2".

# In all other cases, the version is suffixed with "-1".

#

CHANGELOG=`dirname $0`/debian/changelog

# Test whether we're running Chinook or a "legacy" Maemo.

MAEMO_VERSION=`pkg-config libosso --modversion | cut -d . -f 1`

if [ "x$MAEMO_VERSION" = "x1" ]

then

VERSION_SUFFIX=-os2006-os2007

else

VERSION_SUFFIX=-os2008

fi

# Test if this is the armel build (as opposed to the x86 build)

GCC_HOST_IS_ARMEL=`gcc --version | head -n 1 | grep arm`

if [ "x$GCC_HOST_IS_ARMEL" != "x" ]; then

DBP_EXTRA=-B

fi

sed -i "1,1s/(\([0-9.][0-9.]*\)[-a-zA-Z0-9]*)/(\1$VERSION_SUFFIX)/"
$CHANGELOG

dpkg-buildpackage -rfakeroot -i $DBP_EXTRA

sed -i "1,1s/(\([0-9.][0-9.]*\)[-a-zA-Z0-9]*)/(\1)/" $CHANGELOG


Thanks and Regards,
Nisha


On 2/25/08, Kees Jongenburger <kees.jongenburger at gmail.com> wrote:
>
> On Sun, Feb 24, 2008 at 10:24 PM, nisha jain <jain61 at gmail.com> wrote:
> >
> > Hi All,
> >
> > I am trying to make debian package for my application to port it to
> N800.
> > I am able to compile it in ARMEL mode but when i give ./dpkg-build.sh
> > command i am not able to get the debian package...My Makefile is very
> >
> > simple having following rules...What i have to add to create debian
> package?
> Hi
>
> I think you need at least a  make "install" target .
> what is the dpkg-build.sh?
>
> greetings
>
>
> >
> > gcc -o N800App N800App.c `pkg-config gtk+-2.0 hildon-1 --cflags --libs`
> > -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2
> > -I/usr/include/hildon-fm-2 -lgtkdatabox
> >
> > I don't want to plug my code into some existing example application code
> and
> > create debian package as
> > it is making binary huge...the dpkg-build.sh file contains following
> rules
> >
> >
> >
> > Regards,
> > Nisha
> > _______________________________________________
> >  maemo-developers mailing list
> >  maemo-developers at maemo.org
> >  https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080228/6522b66c/attachment.htm 
More information about the maemo-developers mailing list