wok-6.x annotate font-manager/receipt @ rev 22177

corrected font-manager
author Hans-G?nter Theisgen
date Sat Nov 09 11:33:35 2019 +0100 (2019-11-09)
parents e3f377fbc5f0
children bba007560f28
rev   line source
al@13649 1 # SliTaz package receipt.
al@13649 2
al@13649 3 PACKAGE="font-manager"
al@13649 4 VERSION="0.5.7"
al@13649 5 CATEGORY="utilities"
Hans-G?nter@22177 6 SHORT_DESC="A font management application for the GNOME desktop."
al@13649 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22177 9 WEB_SITE="https://fontmanager.github.io/"
al@13649 10
Hans-G?nter@22177 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22177 12 WGET_URL="https://github.com/FontManager/$PACKAGE/archive/$VERSION.tar.gz"
Hans-G?nter@22177 13
Hans-G?nter@22177 14 DEPENDS="fontconfig freetype libxml2-python pycairo pygtk pygobject python \
Hans-G?nter@22177 15 sqlite"
Hans-G?nter@22177 16 BUILD_DEPENDS="bash fontconfig-dev freetype-dev glib-dev gnome-doc-utils
Hans-G?nter@22177 17 intltool pango-dev python-dev sqlite-dev"
al@13649 18
al@13649 19 # Rules to configure and make the package.
al@13649 20 compile_rules()
al@13649 21 {
Hans-G?nter@22177 22 export CONFIG_SHELL=/bin/bash
Hans-G?nter@22177 23 export SHELL=/bin/bash
Hans-G?nter@22177 24
Hans-G?nter@22177 25 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \
Hans-G?nter@22177 26 src/lib/fm-fontutils.c
Hans-G?nter@22177 27 ./configure \
Hans-G?nter@22177 28 --enable-bytecode \
Hans-G?nter@22177 29 --enable-nls \
Hans-G?nter@22177 30 $CONFIGURE_ARGS &&
al@13649 31 make &&
al@13649 32 make DESTDIR=$install install
al@13649 33
al@13649 34 # fix translations
Hans-G?nter@22177 35 for p in $(ls po | grep -e '.po$')
Hans-G?nter@22177 36 do
al@13649 37 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo
Hans-G?nter@22177 38 done
al@13649 39 }
al@13649 40
al@13649 41 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13649 42 genpkg_rules()
al@13649 43 {
al@13649 44 cp -a $install/* $fs
Hans-G?nter@22177 45
al@13649 46 # fix paths
al@13649 47 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py
al@13649 48 # remove help (need absent yelp to show)
al@13649 49 rm -rf $fs/usr/share/font-manager/help
al@13649 50 }