wok-6.x view font-manager/receipt @ rev 24134
Up lzsa (1.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 28 18:03:20 2021 +0000 (2021-10-28) |
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 }