updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / openoffice-uglyfix-freetype2-infinality / PKGBUILD
blobce649a2a15c3932288f2e11ebd2ea9cfa5f17525
1 # Contributor: fettouhi/Andre Fettouhi <A.Fettouhi@gmail.com>
2 # Maintainer: fettouhi/Andre Fettouhi <A.Fettouhi@gmail.com>
4 pkgname=openoffice-uglyfix-freetype2-infinality
5 pkgver=2.4.6
6 pkgrel=1
7 pkgdesc="Compiles freetype2 .so files and puts them in the openoffice directory to fix font ugliness"
8 arch=(i686 x86_64)
9 license=('GPL')
10 url="http://freetype.sourceforge.net"
11 depends=('zlib' 'openoffice-base')
12 options=('!libtool')
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
18         openoffice.patch)
19 md5sums=('5e6510613f612809d2d7862592b92ab7'
20          'ded8954240034a1e6ab2b2115b3ddb8f'
21          'a88b1a66da44a90c1fdcdeaa39a2dc09'
22          'c3428e393be31d8e4089452135b1ae46'
23          '214119610444c9b02766ccee5e220680'
24          'c9ff451346b5f542479828df875e1d39')
26 build() {
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
33   
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
38   make || 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}
44  }