Differences between revisions 4 and 5
Revision 4 as of 2007-01-20 05:25:24
Size: 1876
Editor: ?MohammedAdnèneTrojette
Comment:
Revision 5 as of 2007-01-20 05:27:48
Size: 1868
Editor: ?MohammedAdnèneTrojette
Comment: more cosmetics
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
And we would like to see it installed as a TrueType font, at {{/usr/share/fonts/truetype/ttf-nafees}}. And we would like to see it installed as a TrueType font, at `/usr/share/fonts/truetype/ttf-nafees`.
Line 9: Line 9:
Nothing is easier with dh_install. Just add this to your {{debian/install}} file: Nothing is easier with dh_install. Just add this to your `debian/install` file:
Line 15: Line 15:
{{debian/rules}} only contains a call to cdbs' debhelper makefile and to dh_installdefoma (please read its short manpage). `debian/rules` only contains a call to cdbs' debhelper makefile and to dh_installdefoma (please read its short manpage).
Line 27: Line 27:
Don't forget to Build-Depend on a recent version of defoma (>= 0.7.0 should be enough) and to Depend on ${misc:Depends} (which will add defoma to your Depends field automatically thanks to dh_installdeb) in your {{debian/control}}: Don't forget to Build-Depend on a recent version of defoma (>= 0.7.0 should be enough) and to Depend on ${misc:Depends} (which will add defoma to your Depends field automatically thanks to dh_installdeb) in your `debian/control`:

Fonts packaging has been made really easy thanks to debhelper, cdbs and defoma.

Let us describe it by the example : ttf-nafees.

Here we are with one single font to install: ?NafeesWeb.ttf.

And we would like to see it installed as a TrueType font, at /usr/share/fonts/truetype/ttf-nafees.

Nothing is easier with dh_install. Just add this to your debian/install file:

*.ttf usr/share/fonts/truetype/ttf-nafees

debian/rules only contains a call to cdbs' debhelper makefile and to dh_installdefoma (please read its short manpage).

include /usr/share/cdbs/1/rules/debhelper.mk

install/ttf-nafees::
        dh_installdefoma

Don't forget to Build-Depend on a recent version of defoma (>= 0.7.0 should be enough) and to Depend on ${misc:Depends} (which will add defoma to your Depends field automatically thanks to dh_installdeb) in your debian/control:

Source: ttf-nafees
Section: x11
Priority: optional
Maintainer: Mohammed Adnène Trojette <adn+deb@diwi.org>
Build-Depends: debhelper (>= 4.2), cdbs (>= 0.4.23-1.1)
Build-Depends-Indep: defoma (>= 0.7.0)
Standards-Version: 3.7.2

Package: ttf-nafees
Architecture: all
Depends: ${misc:Depends}
Description: nafees free OpenType Urdu fonts
 This is a free OpenType Urdu font (Nafees Web Naskh), designed and
 developed by the Center for Research in Urdu Language Processing
 (CRULP, http://www.crulp.org/) at National University of Computer and
 Emerging Sciences (http://www.nu.edu.pk/).

But defoma needs hints for your font. Run the following command to generate them:

$ /usr/bin/defoma-hints *.ttf > debian/hints

And you are done with the technical part of your package. Now be really careful about the font licensing and fill debian/copyright accordingly and accurately.


CategoryTeams