wok view font-manager/receipt @ rev 14459

nagios-nrpe: Add missing patch file
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Apr 27 02:52:36 2013 +0200 (2013-04-27)
parents
children 2b9f96603415
line source
1 # SliTaz package receipt.
3 PACKAGE="font-manager"
4 VERSION="0.5.7"
5 CATEGORY="utilities"
6 SHORT_DESC="A font management application for the GNOME desktop"
7 MAINTAINER="al.bobylev@gmail.com"
8 WEB_SITE="http://code.google.com/p/font-manager/"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
12 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \
13 sqlite"
14 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \
15 sqlite-dev intltool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$install install
25 # fix translations
26 for p in $(ls po | grep -e '.po$'); do
27 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
28 done
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
35 # fix paths
36 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
37 # remove help (need absent yelp to show)
38 rm -rf $fs/usr/share/font-manager/help
39 }