1 # Original maintainer: Jan de Groot <jgc@archlinux.org>
2 # Maintainer: Eugene Lamskoy
3 pkgname=fontconfig-cleartype
7 pkgdesc="Fontconfig with cleartype patches (to be used together with *-cleartype AUR packages)"
9 url="http://www.fontconfig.org/release/"
11 depends=('expat>=2.0.1' 'freetype2-cleartype>=2.3.11')
13 install=fontconfig.install
14 source=(http://www.fontconfig.org/release/${_real}-${pkgver}.tar.gz
15 29-replace-bitmap-fonts.conf
17 fontconfig-2.8.0-lcd.patch
18 fontconfig-2.7.1-latin-reorder.patch
20 conflicts=("fontconfig")
21 provides=("fontconfig")
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
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
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')