wok annotate font-manager/receipt @ rev 23347
updated perl-io (1.39 -> 1.42)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 09:32:16 2020 +0100 (2020-03-31) |
parents | 7dd1225d9461 |
children | 5ea0ce1cecc0 |
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@22178 | 25 chmod u+x configure |
Hans-G?nter@22178 | 26 chmod u+x install-sh |
Hans-G?nter@22178 | 27 chmod u+x po/pogen.sh |
Hans-G?nter@22178 | 28 |
Hans-G?nter@22177 | 29 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \ |
Hans-G?nter@22177 | 30 src/lib/fm-fontutils.c |
Hans-G?nter@22177 | 31 ./configure \ |
Hans-G?nter@22177 | 32 --enable-bytecode \ |
Hans-G?nter@22177 | 33 --enable-nls \ |
Hans-G?nter@22177 | 34 $CONFIGURE_ARGS && |
al@13649 | 35 make && |
al@13649 | 36 make DESTDIR=$install install |
al@13649 | 37 |
al@13649 | 38 # fix translations |
Hans-G?nter@22177 | 39 for p in $(ls po | grep -e '.po$') |
Hans-G?nter@22177 | 40 do |
al@13649 | 41 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo |
Hans-G?nter@22177 | 42 done |
al@13649 | 43 } |
al@13649 | 44 |
al@13649 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 46 genpkg_rules() |
al@13649 | 47 { |
al@13649 | 48 cp -a $install/* $fs |
Hans-G?nter@22177 | 49 |
al@13649 | 50 # fix paths |
al@13649 | 51 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py |
al@13649 | 52 # remove help (need absent yelp to show) |
al@13649 | 53 rm -rf $fs/usr/share/font-manager/help |
al@13649 | 54 } |