wok view font-manager/receipt @ rev 18399
open-vm-tools: fix depmod call
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 03:27:30 2015 +0000 (2015-09-19) |
parents | 2b9f96603415 |
children | e3f377fbc5f0 |
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 LICENSE="GPL3"
9 WEB_SITE="http://code.google.com/p/font-manager/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
13 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \
14 sqlite"
15 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \
16 sqlite-dev intltool gnome-doc-utils"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's/FT_XFREE86_H/&\n#define W_OK (2)/' src/lib/fm-fontutils.c
23 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$install install
27 # fix translations
28 for p in $(ls po | grep -e '.po$'); do
29 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
30 done
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 # fix paths
38 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
39 # remove help (need absent yelp to show)
40 rm -rf $fs/usr/share/font-manager/help
41 }