summaryrefslogtreecommitdiff
path: root/extra/fontconfig/PKGBUILD
blob: 514fc8f9d6239e4bbaa123b1201428220d143c50 (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
# $Id: PKGBUILD 59982 2009-11-29 20:19:34Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=fontconfig
pkgver=2.8.0
pkgrel=1
pkgdesc="A library for configuring and customizing font access"
arch=(i686 x86_64 'mips64el')
url="http://www.fontconfig.org/release/"
license=('custom')
depends=('expat>=2.0.1' 'freetype2>=2.3.11')
options=('!libtool')
install=fontconfig.install
source=(http://www.fontconfig.org/release/${pkgname}-${pkgver}.tar.gz
        29-replace-bitmap-fonts.conf
        30-urw-aliases.patch)
md5sums=('77e15a92006ddc2adbb06f840d591c0e'
         'f6b67e8cc79197ed6abd4701911e83da'
         '51bc6cb633b50f3c28793361738aac5b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/30-urw-aliases.patch" || return 1
  # enable Position Independent Code for prelinking
  export CFLAGS="${CFLAGS} -fPIC"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  install -m644 "${srcdir}/29-replace-bitmap-fonts.conf" \
      "${pkgdir}/etc/fonts/conf.avail" || return 1
  rm -f ${pkgdir}/etc/fonts/conf.d/*.conf

  #Install license
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}