wok view font-manager/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (8 months ago) |
parents | 9bbac86a37f7 |
children |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export CONFIG_SHELL=/bin/bash
30 export SHELL=/bin/bash
32 chmod u+x configure
33 chmod u+x install-sh
34 chmod u+x po/pogen.sh
36 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
37 src/lib/fm-fontutils.c
38 sed -i 's|_LIBS)|& |g' Makefile.*
39 ./configure \
40 --enable-bytecode \
41 --enable-nls \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$install install
46 # fix translations
47 for p in $(ls po | grep -e '.po$')
48 do
49 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
50 done
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cp -a $install/* $fs
58 # fix paths
59 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
60 # remove help (need absent yelp to show)
61 rm -rf $fs/usr/share/font-manager/help
62 }