maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Create debian packaging for python (https://talk.maemo.org/showthread.php?t=72822)

wawan60 2011-05-06 09:03

Create debian packaging for python
 
Hi everyone,

Sorry for my bad english, i'm french student :o
I've already develop application, but i didn't build the debian packaging because i don't know how make it.
You can check the french post, there : http://forum.maemofrance.fr/viewtopic.php?f=65&t=2516

I've already done this :
Quote:

Package: PYF
Version: 0.208
Section: multimedia
Priority: optional
Architecture: armel
Depends: gst-plugins-good0.10, gstreamer-tools
Maintainer: Douaille Erwan (Wawan60@gmail.com)
Description: PYF - Pict your face , take snapshot with N900's webcam
Quote:

#!/bin/sh
INSTALL_DIR="usr/share/PYF"
MAN_DIR="usr/share/man/PYF"
BIN_DIR="usr/bin"
APP_DIR="usr/share/applications"
LOC_DIR="usr/share/locale"
ICO_DIR="usr/share/pixmaps"
VERSION=`cat control-install | grep "Version" | sed 's/Version: //'`
mkdir -p PYF
mkdir -p PYF/DEBIAN
cp control-install PYF/DEBIAN/control

mkdir -p PYF/$ICO_DIR
cp pix/pyf.png PYF/$ICO_DIR
mkdir -p PYF/$APP_DIR
cp PYF.desktop PYF/$APP_DIR
mkdir -p PYF/$BIN_DIR
cp PYF.py PYF/$BIN_DIR"/PYF"
dpkg-deb --build PYF PYF-$VERSION"_armel.deb"
rm -rf PYF
I don't know how make desktop's icons, and i don't know if this scirpt work.

There is only one file, and one picture.

You can find the .py for test on the link than i give you.

Thanks for help ;)

humble 2011-05-06 10:06

Re: Create debian packaging for python
 
I use PyPackager by Khertan be sure to read the "PyPackager HowTo" excellent tool if i may add.

wawan60 2011-05-06 14:13

Re: Create debian packaging for python
 
thanks for the quickly answer ;)

I read manual, and i tell you what does i do !

Thanks !


All times are GMT. The time now is 09:17.

vBulletin® Version 3.8.8