wok-6.x view font-manager/receipt @ rev 24195
updated perl-datetime-format-w3cdtf (0.07 -> 0.08)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 14:58:36 2021 +0100 (2021-12-31) |
parents | bba007560f28 |
children | 9bbac86a37f7 |
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CONFIG_SHELL=/bin/bash
29 export SHELL=/bin/bash
31 chmod u+x configure
32 chmod u+x install-sh
33 chmod u+x po/pogen.sh
35 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
36 src/lib/fm-fontutils.c
37 ./configure \
38 --enable-bytecode \
39 --enable-nls \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$install install
44 # fix translations
45 for p in $(ls po | grep -e '.po$')
46 do
47 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
48 done
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 cp -a $install/* $fs
56 # fix paths
57 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
58 # remove help (need absent yelp to show)
59 rm -rf $fs/usr/share/font-manager/help
60 }