maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Packaging Help for a Newbie Required... (https://talk.maemo.org/showthread.php?t=27521)

qwerty12 2009-03-17 18:32

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by BrentDC (Post 272347)
Actually, I was referring to the 26x26 icon that appears in the application manager; I took a png and converted it to base 64 via:

Code:

openssl base64 -in quick_clip.png -out quick_clip.txt
I copied that text into my control file, into the XB-Maemo-Icon-26: field (making sure that I put a space in front of each newline), but it doesn't show up. I think I did everything correctly...(I used openssl instead of uuencode because uuencode wasn't installed in either Ubuntu or Scratchbox).

Install "shareutils" for uuencode ;)

The problem may just be in the way you're adding the base64 into the control file.

I do this:
Quote:

XB-Maemo-Icon-26:
yyyyyyyyyyyy
yyyyyyyyyyyy
(Which, although the quote doesn't do well to show it, translates to "XB-Maemo-Icon-26:<space>
<space>base64 contents")

BrentDC 2009-03-17 18:37

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by mikkov (Post 272370)
You should post your problematic control file here. Otherwise this just guesswork.

Yes, sir. Here it is:

Code:

Source: quickclip
Section: user/tools
Priority: optional
Maintainer: Brent Chiodo <bchiodo@gmail.com>
Build-Depends: debhelper (>= 4.0.0)
Standards-Version: 3.6.0
Package: quickclip
Architecture: armel
Depends: python2.5, python2.5-hildon, python2.5-gtk2, python2.5-hildondesktop, hildon-desktop-python-loader
Version: 0.3.0
Description: A Status bar plugin to copy and save information.
 Quick Clip is a statusbar plugin that allows you to easily save
 information into a file for later reference. Whether that information
 is the current text-selection, or something you just want to jot down,
 Quick Clip automates the whole process.
XB-Maemo-Icon-26:
 iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhk
 iAAABQlJREFUSIndll9oHNcVh79z586sZrX/pPGuZTuqrcVOiikB11EeQl5KG2pK
 +lwoDYE+tI+lEEgCoSHQl9JAm1JoiCmE5CmFPtQ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8NXmHvpRSqPPUa+tUXz0iWiixfZ/tN1zLt/O0KjPSJaawmCYDRL4xmUqEXH
 qEyUuPv224T1Bmeff47Gpa+icYznHN7WFmbt0yNAzu0W60izUY3oziWoimQD6vOP
 4lcqJAsL1GZOMPuVJ7h19fes/OYK5txZske+eJRGuuNQy+UyI6bsJgQimFoNvXCB
 chTx8VtvcfrJrzPz+OPU2m215ZDehx+QL/z1qIgKFERVsdbil3z8wKcU+JRKPqUg
 YKLZpNjcZLLdxq9WWbt2DS8IqLbnCGdaiPUoXLHvqrg3IrNxa0OTJE6TJKmNuorA
 6Bsfp6DVSYJWU27/fcHUn/iyW37jTa/86Hxh6zUVEQaDQXfp5pI3DsQdAImI/vn6
 X/7Vas38tFGvnx1dgsoIo7sdHRFst2tKNxZnvTA8ESwszN64/NrV4uSJjojo5p3b
 N95554932fPC2BfexMQERVHIFx4+b6NoyuR5Lk7/W+G7ICCsVPRLix+12mKe1DQJ
 /2G916+fmU1Lga+frq279268n7s97eHQ59ZnHe9evMhyHAe9OOap1dXB/Wz/A/bi
 ilzUOf87AAAAAElFTkSuQmCC
Installed-size: 127


BrentDC 2009-03-17 18:45

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by qole (Post 272362)
I know that Khertan's PyPackager does the icon conversion; perhaps you can peek into his code to see how he does it?

I'll take a look at the code and try to see what's going on; also, I'll try extracting the control file from a pypackager-built package.

Quote:

Oh, and while you're there, are you interested in updating it? I've got a few feature requests...
Depends on the feature request and the pypackager code; I'm still very much a python newbie, and if Khertan's code is too advanced I won't be able to do much with it. Although, it shouldn't be too hard to add a gtk.ScrolledWindow() to the change log tab...

BrentDC 2009-03-17 18:50

Re: Packaging Help for a Newbie Required...
 
Ah, ha! The pypackager built deb has a "Maemo-Icon-26" field not a "XB-Maemo-Icon-26" field...hmm. I guess I'll try that...

BrentDC 2009-03-17 19:04

Re: Packaging Help for a Newbie Required...
 
Yes, the "Maemo-Icon-26" worked. The icon now appears fine. I just wonder why XB- didn't? Strange.

qwerty12 2009-03-17 19:12

Re: Packaging Help for a Newbie Required...
 
If you have to use Maemo-Icon-26 w/out the XB-, you're not making a package that the autobuilder will accept.

BrentDC 2009-03-17 19:33

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by qwerty12 (Post 272387)
If you have to use Maemo-Icon-26 w/out the XB-, you're not making a package that the autobuilder will accept.

Then icons must not be possible with local debs? Because XB- certainly doesn't work.

mikkov 2009-03-17 19:47

Re: Packaging Help for a Newbie Required...
 
Are you building the package with dpkg-buildpackage?

Non-related suggestions:

use "Architecture: all" since this is pure python application

with "XB-Maemo-Display-Name:" field you can get better formatted title, for example "XB-Maemo-Display-Name: Quickclip"

BrentDC 2009-03-17 20:20

Re: Packaging Help for a Newbie Required...
 
Quote:

Originally Posted by mikkov (Post 272400)
Are you building the package with dpkg-buildpackage?

Non-related suggestions:

use "Architecture: all" since this is pure python application

with "XB-Maemo-Display-Name:" field you can get better formatted title, for example "XB-Maemo-Display-Name: Quickclip"

I'm using dpkg-deb --build <source directory name> to build the package. When I tried using dpkg-buildpackage I was getting all kinds of errors, most notably a "dpkg-source: unrepresentable changes to source" error; even with that error, a *.tar.gz, *.dsc and some other files were created, but no *.deb. Is dpkg-buildpackage supposed to create a .deb? The Diablo Maemo Reference seemed to indicate it should. Thanks.

mikkov 2009-03-17 20:32

Re: Packaging Help for a Newbie Required...
 
yes, you should be using dpkg-buildpackage to build .debs, it might have something to do with missing icon.

I believe qwerty12 explained how to fix the problem with dpkg-buildpackage. If those instructions are not helping, I have to ask you to post the error message and maybe the whole source package here. Otherwise we are, again, just guessing :)


All times are GMT. The time now is 15:50.

vBulletin® Version 3.8.8