summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9297b9f7eb0e2818c847e3e76a832fee8c332d1 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer:  Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: frames <markkuehn at outlook dot com>
# Contributor: Estevao Valadao <estevao@archlinux-br.org>
# Contributor: Tetsumaki <http://goo.gl/YMBdA>
# Contributor: Dave Reisner <d@falconindy.com>
# Contributor: Lee.MaRS <leemars@gmail.com>
# Contributor: freedom

pkgname=freetype2-cleartype
pkgver=2.7
pkgrel=1
pkgdesc="TrueType font rendering library with ClearType patch"
arch=('i686' 'x86_64')
license=('GPL')
url="http://freetype.sourceforge.net/"
depends=('zlib')
conflicts=('freetype2')
provides=("freetype2=$pkgver")
options=('!libtool')
source=("http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2"
        '0001-subpixel-disable-quantization.patch'
        '0002-bytecode.patch'
        '0003-enable-spr.patch'
        '0004-enable-valid.patch'
        '0005-memcpy-fix.patch')
md5sums=('be4601619827b7935e1d861745923a68'
         '7d44826389c2ef5c8b3b1e0f2d315f00'
         'fd6b679327c5aa57fffba2bd51af208b'
         '618d7265f93a59b78550bb2c0ced7976'
         'cef23c05395eb7ead5050b4ffc6616c1'
         '029bf39a0f9995f8adf86a2ddf215761')

prepare() {
    cd "freetype-$pkgver"

    for p in $(find "$srcdir" -maxdepth 1 -name '*.patch'); do
        msg2 "Applying $p"
        patch -Np1 -i "$p"
    done
}

build() {
    cd "freetype-$pkgver"
    ./configure --prefix=/usr
    make
}

package() {
    cd "freetype-$pkgver"
    make DESTDIR="$pkgdir" install
}