blob: d21dd59906c64cbb843ff68d479dcc8ce2fbda71 (
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
68
69
70
71
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
_pkgbasename=freetype2
pkgname=lib32-$_pkgbasename-git
pkgver=2.9.1+p305+g8d517e679
pkgrel=1
pkgdesc="TrueType font rendering library (32-bit)"
arch=(x86_64)
license=('GPL')
url="https://www.freetype.org/"
# adding harfbuzz for improved OpenType features auto-hinting
# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
depends=('lib32-zlib' 'lib32-bzip2' 'lib32-libpng' 'lib32-harfbuzz' $_pkgbasename)
makedepends=('gcc-multilib')
provides=('libfreetype.so' 'lib32-freetype2')
conflicts=('lib32-freetype2')
source=(git+https://gitlab.freedesktop.org/freetype/freetype.git
0001-Enable-table-validation-modules.patch
0002-Enable-infinality-subpixel-hinting.patch
0003-Enable-long-PCF-family-names.patch)
sha1sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
validpgpkeys=('SKIP')
pkgver() {
local _tag _count
cd "${srcdir}/freetype"
_tag=$(git describe --abbrev=0 )
_count=$(git rev-list --count ${_tag}..HEAD)
_tag=${_tag#VER-}
echo ${_tag//-/.}+p$_count+g$(git rev-parse --short HEAD)
}
prepare() {
cd freetype
patch -Np1 -i ../0001-Enable-table-validation-modules.patch
patch -Np1 -i ../0002-Enable-infinality-subpixel-hinting.patch
patch -Np1 -i ../0003-Enable-long-PCF-family-names.patch
./autogen.sh
}
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
cd freetype
./configure --prefix=/usr --disable-static --libdir=/usr/lib32
make
}
#check() {
# cd freetype
# make -k check
#}
package() {
cd freetype
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}"/usr/{include,share}
}
# vim:set ts=2 sw=2 et:
|