[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using defoma for building package ?

Le Ven 28 Avril 2006 11:06, artefact a écrit :
> Hi,
> I am packaging a game, Wormux. This game use the font DejaVuSans
> which is already a Debian package. How can I use Defoma (I think this
> is the tool to use for this) to get this font path when building my
> package so that it could depend on the DejaVuSans package rather than
> including the font in the wormux-data package. Or maybe does it exist
> a debhelper for this but I can not get is name...
> Note: I RTFM :-) and had a look at several others game package
> (penguin-racer,  gltron and some others) and they all embbed the font
> files into the -data package.

I think you can get safely it with:

dirname $(grep '^begin ' /etc/defoma/hints/ttf-dejavu.hints | \
          head -1 | cut -d' ' -f 2)

but it may exist some more conventionnal way, I'm far from knowing 
defoma ;)
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp0M7uT91IS6.pgp
Description: PGP signature

Reply to: