updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / fontconfig-cleartype / PKGBUILD
blobc84151db298a8ceaa652f140bdf5f02abe936aff
1 # Original maintainer: Jan de Groot <jgc@archlinux.org>
2 # Maintainer: Eugene Lamskoy
3 pkgname=fontconfig-cleartype
4 _real=fontconfig
5 pkgver=2.8.0
6 pkgrel=1
7 pkgdesc="Fontconfig with cleartype patches (to be used together with *-cleartype AUR packages)"
8 arch=("i686" "x86_64")
9 url="http://www.fontconfig.org/release/"
10 license=('custom')
11 depends=('expat>=2.0.1' 'freetype2-cleartype>=2.3.11')
12 options=('!libtool')
13 install=fontconfig.install
14 source=(http://www.fontconfig.org/release/${_real}-${pkgver}.tar.gz
15         29-replace-bitmap-fonts.conf
16         30-urw-aliases.patch
17 fontconfig-2.8.0-lcd.patch
18 fontconfig-2.7.1-latin-reorder.patch
19         )
20 conflicts=("fontconfig")
21 provides=("fontconfig")
23 build() {
24   cd "${srcdir}/${_real}-${pkgver}"
25   patch -Np1 -i "${srcdir}/30-urw-aliases.patch" || return 1
26   patch -Np1 -i "${srcdir}/fontconfig-2.8.0-lcd.patch" || return 1
27   patch -Np1 -i "${srcdir}/fontconfig-2.7.1-latin-reorder.patch" || return 1
29   # enable Position Independent Code for prelinking
30   export CFLAGS="${CFLAGS} -fPIC"
31   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
32   make || return 1
33   make DESTDIR="${pkgdir}" install || return 1
34   install -m644 "${srcdir}/29-replace-bitmap-fonts.conf" \
35       "${pkgdir}/etc/fonts/conf.avail" || return 1
36   rm -f ${pkgdir}/etc/fonts/conf.d/*.conf
37   #Install license
38   install -m755 -d "${pkgdir}/usr/share/licenses/{$_real}"
39   install -m644 COPYING "${pkgdir}/usr/share/licenses/{$_real}/" || return 1
42 md5sums=('77e15a92006ddc2adbb06f840d591c0e'
43          'f6b67e8cc79197ed6abd4701911e83da'
44          '51bc6cb633b50f3c28793361738aac5b'
45          'afd68450bdda69a1dbad163013d2f748'
46          '1161579571a7f2fb1c4990c62053e9df')