wok-current view font-manager/receipt @ rev 22476
updated alarm-clock again (1.4.3 -> 1.4.9)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Dec 28 14:43:24 2019 +0100 (2019-12-28) |
parents | 7dd1225d9461 |
children | 5ea0ce1cecc0 |
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 chmod u+x configure
26 chmod u+x install-sh
27 chmod u+x po/pogen.sh
29 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
30 src/lib/fm-fontutils.c
31 ./configure \
32 --enable-bytecode \
33 --enable-nls \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$install install
38 # fix translations
39 for p in $(ls po | grep -e '.po$')
40 do
41 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
42 done
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/* $fs
50 # fix paths
51 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
52 # remove help (need absent yelp to show)
53 rm -rf $fs/usr/share/font-manager/help
54 }