# Contributor (Arch): Joeny Ang # Contributor (Arch): Guan 'kuno' Qing # Contributor (Arch): Guten Ye # Contributor (Arch): i_magnific0 # Contributor (Arch): Pavlo # Maintainer: Esteban Carnevale pkgname=font-manager pkgver=0.5.7 pkgrel=5 pkgdesc="A font management application for the GNOME desktop" url="http://code.google.com/p/font-manager/" arch=('i686' 'x86_64') license=('GPL') depends=('pygtk>=2.0' 'libxml2' 'fontconfig') optdepends=('file-roller: to import/export font collections to archives' 'gucharmap: to view selected font using GNOME character map application' 'python-reportlab: to create PDF sample sheets') source=(http://ftp.de.debian.org/debian/pool/main/f/font-manager/${pkgname}_${pkgver}.orig.tar.bz2 0001-nonexistent_cache.patch 1001-gcc47.patch 2001-paths.patch 2002-local-fontconfig-path.patch 2003-file-roller-syntax-fix.patch) md5sums=('7cd3b635eaddcb84a8b31509880510ed' '50e732de1a92bc498d4cffd39185225c' '727acfbbce4ab8d05078e4719443ce29' 'a9a3cfc9433a0a4c710d4192f34760b9' '119c5049113dadbf54aa4d2edf243d97' '1daadcf92126caa46a628710fd07ae41') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc sed -i -e 's/^PYTHON.*/PYTHON=\/usr\/bin\/python2/' Makefile # apply patches from Debian # source: http://ftp.de.debian.org/debian/pool/main/f/font-manager/font-manager_0.5.7-4.debian.tar.gz patch -Np1 < ../0001-nonexistent_cache.patch patch -Np1 < ../1001-gcc47.patch # apply config file location constants patch by i_magnific0 # source: https://github.com/magnific0/font-manager patch -Np1 < ../2001-paths.patch # apply patch to create local fontconfig path if not found patch -Np1 < ../2002-local-fontconfig-path.patch # apply patch to fix file-roller command line syntax patch -Np1 < ../2003-file-roller-syntax-fix.patch # build make } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir}/ install }