wok-6.x view font-manager/receipt @ rev 25522
created recipes for libtermkey and libtermkey-dev 0.22
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:12:54 2023 +0100 (20 months ago) |
parents | 5ea0ce1cecc0 |
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 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 sed -i 's|_LIBS)|& |g' Makefile.*
38 ./configure \
39 --enable-bytecode \
40 --enable-nls \
41 $CONFIGURE_ARGS &&
42 make &&
43 make DESTDIR=$install install
45 # fix translations
46 for p in $(ls po | grep -e '.po$')
47 do
48 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
49 done
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
57 # fix paths
58 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
59 # remove help (need absent yelp to show)
60 rm -rf $fs/usr/share/font-manager/help
61 }