1 # Contributor: fettouhi/Andre Fettouhi <A.Fettouhi@gmail.com>
2 # Maintainer: fettouhi/Andre Fettouhi <A.Fettouhi@gmail.com>
4 pkgname=openoffice-uglyfix-freetype2-infinality
7 pkgdesc="Compiles freetype2 .so files and puts them in the openoffice directory to fix font ugliness"
10 url="http://freetype.sourceforge.net"
11 depends=('zlib' 'openoffice-base')
13 source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
14 http://www.infinality.net/files/freetype-add-subpixel-hinting-infinality-20110604-1.patch
15 http://www.infinality.net/files/freetype-enable-subpixel-hinting-infinality-20100909-1.patch
16 http://www.infinality.net/files/freetype-entire-infinality-patchset-20110604-1.patch
17 freetype-2.2.1-enable-valid.patch
19 md5sums=('5e6510613f612809d2d7862592b92ab7'
20 'ded8954240034a1e6ab2b2115b3ddb8f'
21 'a88b1a66da44a90c1fdcdeaa39a2dc09'
22 'c3428e393be31d8e4089452135b1ae46'
23 '214119610444c9b02766ccee5e220680'
24 'c9ff451346b5f542479828df875e1d39')
27 cd ${srcdir}/freetype-${pkgver}
28 patch -Np1 -i ${srcdir}/freetype-add-subpixel-hinting-infinality-20110604-1.patch || return 1
29 patch -Np1 -i ${srcdir}/freetype-2.2.1-enable-valid.patch || return 1
30 patch -Np1 -i ${srcdir}/freetype-enable-subpixel-hinting-infinality-20100909-1.patch || return 1
31 patch -Np1 -i ${srcdir}/freetype-entire-infinality-patchset-20110604-1.patch || return 1
32 patch -Np0 -i ${srcdir}/openoffice.patch || return 1
34 # Defining installation diectory for openoffice:
35 INSTDIR=openoffice.org/basis3.3
37 ./configure --prefix=/usr --with-bytecode_interpreter --with-subpixel_rendering --disable-static || return 1
39 make DESTDIR=${startdir}/pkg install || return 1
40 mkdir -p ${pkgdir}/usr/lib/${INSTDIR}/program
41 /bin/install -c ${startdir}/pkg/usr/lib/libfreetype.so* ${pkgdir}/usr/lib/${INSTDIR}/program/
42 rm -rf ${pkgdir}/usr/{bin,include,share}
43 rm -rf ${pkgdir}/usr/lib/{pkgconfig,libfreetype.so,libfreetype.so.6,libfreetype.so.6.7.1}