[maemo-developers] Making debian package...

From: Ryan Pavlik abiryan at ryand.net
Date: Fri Feb 29 09:34:55 EET 2008
What you have to do is actually create the information required for a 
Debian package - this script will only build the packaging material 
already there.  Google for the Debian New Maintainer's Guide to find out 
how to "Debianize" your package, then this script will work.  (Hence the 
suggestions to put it in an existing package - if you remove the other 
program and ensure the Debian files are set right, it won't increase 
your size.  Probably just easier to follow the New Maintainer's Guide, 
though.  This is something that EVERYONE trying to build for Maemo 
should read, and I'm not sure why it's not more well-known on this list.)

Where did you find this script?  It looks useful, esp. as a possible 
target of community maintenance.  What is its license?

Ryan

nisha jain wrote:
> 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 
> <mailto:kees.jongenburger at gmail.com>> wrote:
>
>     On Sun, Feb 24, 2008 at 10:24 PM, nisha jain <jain61 at gmail.com
>     <mailto: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 <mailto:maemo-developers at maemo.org>
>     >  https://lists.maemo.org/mailman/listinfo/maemo-developers
>     >
>     >
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>   


-- 
Ryan Pavlik
www.cleardefinition.com

#282  +  (442) -  [X]
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;


More information about the maemo-developers mailing list