wok-6.x annotate font-manager/receipt @ rev 17735
dahdi-linux: save firmware as source (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 12:02:31 2015 +0100 (2015-03-06) |
parents | 2b9f96603415 |
children | e3f377fbc5f0 |
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" |
al@13649 | 6 SHORT_DESC="A font management application for the GNOME desktop" |
al@13649 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@14999 | 8 LICENSE="GPL3" |
al@13649 | 9 WEB_SITE="http://code.google.com/p/font-manager/" |
al@13649 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@13649 | 11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL" |
al@13649 | 12 |
al@13649 | 13 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \ |
al@13649 | 14 sqlite" |
al@13649 | 15 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \ |
pascal@15301 | 16 sqlite-dev intltool gnome-doc-utils" |
al@13649 | 17 |
al@13649 | 18 # Rules to configure and make the package. |
al@13649 | 19 compile_rules() |
al@13649 | 20 { |
al@13649 | 21 cd $src |
pascal@15301 | 22 sed -i 's/FT_XFREE86_H/&\n#define W_OK (2)/' src/lib/fm-fontutils.c |
al@13649 | 23 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS && |
al@13649 | 24 make && |
al@13649 | 25 make DESTDIR=$install install |
al@13649 | 26 |
al@13649 | 27 # fix translations |
al@13649 | 28 for p in $(ls po | grep -e '.po$'); do |
al@13649 | 29 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo |
al@13649 | 30 done |
al@13649 | 31 } |
al@13649 | 32 |
al@13649 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 34 genpkg_rules() |
al@13649 | 35 { |
al@13649 | 36 cp -a $install/* $fs |
al@13649 | 37 # fix paths |
al@13649 | 38 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py |
al@13649 | 39 # remove help (need absent yelp to show) |
al@13649 | 40 rm -rf $fs/usr/share/font-manager/help |
al@13649 | 41 } |