wok-next view font-manager/receipt @ rev 13890

Up: tazdev (1.9)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 17 19:37:29 2013 +0100 (2013-01-17)
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 }