# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=freetype pkgver=2.6 pkgrel=4 pkgdesc="TrueType font rendering library" url="http://freetype.sourceforge.net" arch="all" license="GPL" depends="" depends_dev="libpng-dev" makedepends="$depends_dev zlib-dev" subpackages="$pkgname-dev $pkgname-doc" # fontconfig-ultimate https://github.com/bohoomil/fontconfig-ultimate _ultver="2015-08-01" source="http://download.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.bz2 fontconfig-ultimate-$_ultver.tar.gz::https://github.com/bohoomil/fontconfig-ultimate/archive/$_ultver.tar.gz 40-memcpy-fix.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" for i in "$srcdir"/*.patch; do msg "Applying ${i}" patch -p0 -i $i || return 1 done # apply infinality for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do msg "Applying ${j}" patch -p1 -i $j || return 1 done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 # for compat. This should be removed once all apps are properly using # pkg-config ln -s freetype2 "$pkgdir"/usr/include/freetype # install infinality profile settings install -Dm755 "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/infinality-settings.sh \ "$pkgdir"/etc/X11/xinit/xinitrc.d/infinality-settings.sh || return 1 sed -i "1i #!/bin/sh" \ "$pkgdir"/etc/X11/xinit/xinitrc.d/infinality-settings.sh || return 1 } md5sums="5682890cb0267f6671dd3de6eabd3e69 freetype-2.6.tar.bz2 1e7dde1ca1d3655cb537b8d928fc312a fontconfig-ultimate-2015-08-01.tar.gz bd2d808a0c00dcf9f1d1c0a9a8227ad9 40-memcpy-fix.patch" sha256sums="8469fb8124764f85029cc8247c31e132a2c5e51084ddce2a44ea32ee4ae8347e freetype-2.6.tar.bz2 19b3eac37f589a651e90507680c80e19bcb2ed4e3e6c63da7ca3c6e22bb209e9 fontconfig-ultimate-2015-08-01.tar.gz 574c265c7a7032c5afb32a9807e5d04354ad0def656194cfcfff1ccca6a5540e 40-memcpy-fix.patch" sha512sums="0242c832dcac3d9dc5d434b7f5145e63f2289d5df32f16e1c7afc1e31c3c92f0dd374e20dfef79a9ecb26b14419f42b0d897c7154f249f629c35ee7af0aa5297 freetype-2.6.tar.bz2 2c1e8c522c94f6db45c63cde610bd2abf95ae913241ebda275d40cda0c0b62a489047749eaefa78fcf25d802ebad442f32f2bbf5629d4fa8ee0c6dbc9f105de9 fontconfig-ultimate-2015-08-01.tar.gz 1553f7f0514238012e300bc8d0b1e260145db17fb56f13e4aa667435e98c3749c00e150caa0e318289b84bca33b9a06a68b8342575e10ac3bf5af3d5cc861537 40-memcpy-fix.patch"