blob: 02559c1867c63b9f6f55b7db82e0a12715948aff (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# See AUR interface to contact current maintainer.
# Do note that this PKGBUILD follows closely the PKGBUILD provided by
# Arch extra repository, for obvious reasons.
pkgname=libreoffice-uglyfix-freetype2
pkgver=2.6.1
pkgrel=1
pkgdesc="Installs freetype2 .so files in the LibreOffice directory to fix font ugliness"
arch=(i686 x86_64)
license=('GPL')
url="http://freetype.sourceforge.net"
# adding harfbuzz for improved OpenType features auto-hinting
# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz' 'libreoffice')
options=(!docs)
source=(
http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
libreoffice-uglyfix-noautohint.patch
0001-Enable-table-validation-modules.patch
0002-Enable-subpixel-rendering.patch
0003-Enable-subpixel-hinting.patch
0004-Mask-subpixel-hinting-with-an-env-var.patch)
sha256sums=('2f6e9a7de3ae8e85bdd2fe237e27d868d3ba7a27495e65906455c27722dd1a17'
'SKIP'
'65915726ba3adfc5903ddd6b706ce91751994e7635ea6111e33e5939c674496b'
'9de28c1156c0a5edff1b3860ad44f4cc2494fc5663bd40c3914fdd64e8ee0724'
'60e767ccee37939bfea73fa86229108c51b665713a89fbda5506759af2e7d629'
'78aba5d04418952cf4a29351420fc82c5830616d221e95a21a0c8e3da827d681'
'3672ef244d6c455623bd0ddecde46bd3758152713a03d475f91aaccfa1a2e0f4')
validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
prepare()
{
cd "$srcdir/freetype-$pkgver"
patch -Np1 -i "$srcdir/libreoffice-uglyfix-noautohint.patch"
#
# Arch patches
#
patch -Np1 -i "${srcdir}/0001-Enable-table-validation-modules.patch"
patch -Np1 -i "${srcdir}/0002-Enable-subpixel-rendering.patch"
# https://bugs.archlinux.org/task/35274
patch -Np1 -i "${srcdir}/0003-Enable-subpixel-hinting.patch"
# Provide a way to enable the above patch at runtime.
# Hopefully just a temporary measure until fontconfig picks up
# the necessary configurables.
patch -Np1 -i "${srcdir}/0004-Mask-subpixel-hinting-with-an-env-var.patch"
}
build()
{
cd "$srcdir/freetype-$pkgver"
./configure --prefix=/usr --disable-static
make
}
package()
{
cd "$srcdir/freetype-$pkgver"
install -d "$pkgdir"/usr/lib/libreoffice/program
cp -aP "$srcdir/freetype-$pkgver"/objs/.libs/libfreetype.so* \
"$pkgdir"/usr/lib/libreoffice/program
}
|