summaryrefslogtreecommitdiff
path: root/pcr/font-manager/PKGBUILD
blob: fbdda3ff99c5b7abbe69128959b54a0642e7f821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor (Arch): Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
# Contributor (Arch): Guan 'kuno' Qing <neokuno(at)gmail(dot)com>
# Contributor (Arch): Guten Ye <ywzhaifei(at)gmail(dot)com>
# Contributor (Arch): i_magnific0 <i_magnific0(at)yahoo(dot)com>
# Contributor (Arch): Pavlo <pavlofreemen(at)gmail(dot)com>
# Maintainer: Esteban Carnevale <alfplayer@mailoo.org>

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
}