wok view font-manager/receipt @ rev 22177

corrected font-manager
author Hans-G?nter Theisgen
date Sat Nov 09 11:33:35 2019 +0100 (4 weeks ago)
parents e3f377fbc5f0
children bba007560f28
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="https://fontmanager.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/FontManager/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="fontconfig freetype libxml2-python pycairo pygtk pygobject python \
15 sqlite"
16 BUILD_DEPENDS="bash fontconfig-dev freetype-dev glib-dev gnome-doc-utils
17 intltool pango-dev python-dev sqlite-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 export CONFIG_SHELL=/bin/bash
23 export SHELL=/bin/bash
25 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
26 src/lib/fm-fontutils.c
27 ./configure \
28 --enable-bytecode \
29 --enable-nls \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$install install
34 # fix translations
35 for p in $(ls po | grep -e '.po$')
36 do
37 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
38 done
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
46 # fix paths
47 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
48 # remove help (need absent yelp to show)
49 rm -rf $fs/usr/share/font-manager/help
50 }