# Maintainer: Amanoel Dawod # Contributor: Jaden Peterson # Contributor: Bruno Pagani (a.k.a. ArchangeGabriel) # Contributor: jeckhack # Contributor: Marcin (CTRL) Wieczorek # Contributor: frames # Contributor: Estevao Valadao # Contributor: Tetsumaki # Contributor: Dave Reisner # Contributor: Lee.MaRS # Contributor: freedom pkgname=freetype2-cleartype pkgver=2.10.4 pkgrel=1 pkgdesc="Font rasterization library with ClearType patch" 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=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz') makedepends=('libx11') conflicts=('freetype2') provides=('freetype2' 'libfreetype.so') backup=('etc/profile.d/freetype2.sh') install=freetype2.install source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.xz{,.sig} 0001-Enable-table-validation-modules.patch 0002-Enable-subpixel-rendering.patch 0003-Enable-infinality-subpixel-hinting.patch 0004-Enable-long-PCF-family-names.patch freetype2.sh) sha1sums=('0181862673f7216ad2b5074f95fc131209e30b27' 'SKIP' '0d8d5af8ebb00cf46fd4c5db7703c88e1268a9e7' 'fb8a18f66edf23f7b83d6694687ac7d80cc7715a' '9164a2060b03359dd51c2c4db04e3af455600c52' 'ec79f93276ff4e2b365029276aca3b73885b0427' 'bc6df1661c4c33e20f5ce30c2da8ad3c2083665f') validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') prepare() { cd freetype-${pkgver} # Patches from [extra] patch -Np1 -i ../0001-Enable-table-validation-modules.patch patch -Np1 -i ../0002-Enable-subpixel-rendering.patch patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch } build() { cd freetype-${pkgver} ./configure --prefix=/usr --disable-static make } check() { cd freetype-${pkgver} make -k check } package() { cd freetype-${pkgver} make DESTDIR="${pkgdir}" install install -Dt "${pkgdir}/etc/profile.d" -m644 ../freetype2.sh }