wok-6.x annotate font-manager/receipt @ rev 14302
Up: edbus (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:14:17 2013 +0200 (2013-04-07) |
parents | |
children | 2b9f96603415 |
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" |
al@13649 | 8 WEB_SITE="http://code.google.com/p/font-manager/" |
al@13649 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@13649 | 10 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL" |
al@13649 | 11 |
al@13649 | 12 DEPENDS="python pygtk pygobject pycairo libxml2-python fontconfig freetype \ |
al@13649 | 13 sqlite" |
al@13649 | 14 BUILD_DEPENDS="bash python-dev fontconfig-dev freetype-dev glib-dev pango-dev \ |
al@13649 | 15 sqlite-dev intltool" |
al@13649 | 16 |
al@13649 | 17 # Rules to configure and make the package. |
al@13649 | 18 compile_rules() |
al@13649 | 19 { |
al@13649 | 20 cd $src |
al@13649 | 21 ./configure --enable-bytecode --enable-nls $CONFIGURE_ARGS && |
al@13649 | 22 make && |
al@13649 | 23 make DESTDIR=$install install |
al@13649 | 24 |
al@13649 | 25 # fix translations |
al@13649 | 26 for p in $(ls po | grep -e '.po$'); do |
al@13649 | 27 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo |
al@13649 | 28 done |
al@13649 | 29 } |
al@13649 | 30 |
al@13649 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 32 genpkg_rules() |
al@13649 | 33 { |
al@13649 | 34 cp -a $install/* $fs |
al@13649 | 35 # fix paths |
al@13649 | 36 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py |
al@13649 | 37 # remove help (need absent yelp to show) |
al@13649 | 38 rm -rf $fs/usr/share/font-manager/help |
al@13649 | 39 } |