wok view font-manager/receipt @ rev 14999

Add GPL3 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 13:52:56 2013 +0000 (2013-08-10)
parents 4af76cfb62c4
children c2c82f83aca6
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"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$install install
26 # fix translations
27 for p in $(ls po | grep -e '.po$'); do
28 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
29 done
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 # fix paths
37 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
38 # remove help (need absent yelp to show)
39 rm -rf $fs/usr/share/font-manager/help
40 }