wok-current view font-manager/receipt @ rev 21208
Update deadbeef (1.8.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Apr 09 12:13:22 2019 +0300 (2019-04-09) |
parents | c2c82f83aca6 |
children | 7dd1225d9461 |
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="http://fontmanager.github.io/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
13 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \
14 sqlite"
15 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \
16 sqlite-dev intltool gnome-doc-utils"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's/FT_XFREE86_H/&\n#define W_OK (2)/' src/lib/fm-fontutils.c
23 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$install install
27 # fix translations
28 for p in $(ls po | grep -e '.po$'); do
29 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
30 done
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 # fix paths
38 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
39 # remove help (need absent yelp to show)
40 rm -rf $fs/usr/share/font-manager/help
41 }