2015-12-24 00:25:30 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-12-24 00:25:30 +01:00
|
|
|
pkgname=mingw-w64-freetype2-bootstrap
|
2019-10-13 21:32:10 +02:00
|
|
|
pkgver=2.10.1
|
2017-01-06 22:32:35 +01:00
|
|
|
pkgrel=1
|
2017-05-20 15:53:34 +02:00
|
|
|
pkgdesc='Font rasterization library (mingw-w64)'
|
2015-12-24 00:25:30 +01:00
|
|
|
arch=('any')
|
2017-05-20 15:53:34 +02:00
|
|
|
url='https://www.freetype.org/'
|
2015-12-24 00:25:30 +01:00
|
|
|
license=('GPL')
|
|
|
|
depends=(mingw-w64-crt mingw-w64-zlib mingw-w64-bzip2)
|
|
|
|
makedepends=(mingw-w64-gcc mingw-w64-configure)
|
2016-07-12 17:36:14 +02:00
|
|
|
provides=(mingw-w64-freetype)
|
|
|
|
replaces=(mingw-w64-freetype)
|
|
|
|
conflicts=(mingw-w64-freetype)
|
2019-10-13 21:32:10 +02:00
|
|
|
source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.xz{,.sig}
|
2015-12-24 00:25:30 +01:00
|
|
|
0001-Enable-table-validation-modules.patch
|
2018-01-12 16:53:11 +01:00
|
|
|
0002-Enable-infinality-subpixel-hinting.patch
|
|
|
|
0003-Enable-long-PCF-family-names.patch)
|
2015-12-24 00:25:30 +01:00
|
|
|
options=(!strip !buildflags !libtool staticlibs)
|
2019-10-13 21:32:10 +02:00
|
|
|
sha1sums=('79874ef4eaa52025126b71d836453b8279bdd331'
|
2015-12-24 00:25:30 +01:00
|
|
|
'SKIP'
|
2019-03-15 23:07:57 +01:00
|
|
|
'46fd67e6a594f6c2c473b9321ba64913984ba42f'
|
|
|
|
'4bf0c0749db09878b918cc404300f0d3e9091607'
|
|
|
|
'af76172be8135e74391b7ad1b82c2124ae0ad86c')
|
2015-12-24 00:25:30 +01:00
|
|
|
validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
|
|
|
|
|
2017-01-06 22:32:35 +01:00
|
|
|
if [[ $pkgname = 'mingw-w64-freetype2-bootstrap' ]]; then
|
2016-07-12 17:36:14 +02:00
|
|
|
_provides=${pkgname%-bootstrap}
|
|
|
|
else
|
|
|
|
_provides=${pkgname}-bootstrap
|
|
|
|
# adding harfbuzz for improved OpenType features auto-hinting
|
|
|
|
# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream
|
|
|
|
depends+=(mingw-w64-harfbuzz)
|
2016-07-12 18:14:17 +02:00
|
|
|
replaces+=(${_provides})
|
2016-07-12 17:36:14 +02:00
|
|
|
fi
|
|
|
|
provides+=(${_provides})
|
|
|
|
conflicts+=(${_provides})
|
|
|
|
|
2017-01-06 22:32:35 +01:00
|
|
|
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
2015-12-24 00:25:30 +01:00
|
|
|
|
|
|
|
prepare() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "${srcdir}/freetype-${pkgver}"
|
2017-01-08 14:27:17 +01:00
|
|
|
|
2016-07-12 17:36:14 +02:00
|
|
|
patch -Np1 -i ../0001-Enable-table-validation-modules.patch
|
2018-01-12 16:53:11 +01:00
|
|
|
patch -Np1 -i ../0002-Enable-infinality-subpixel-hinting.patch
|
|
|
|
patch -Np1 -i ../0003-Enable-long-PCF-family-names.patch
|
2015-12-24 00:25:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
mkdir -p "${srcdir}/freetype-${pkgver}/build-${_arch}"
|
|
|
|
cd "${srcdir}/freetype-${pkgver}/build-${_arch}"
|
|
|
|
${_arch}-configure --with-zlib=/usr/${_arch} --without-png
|
|
|
|
make
|
|
|
|
done
|
2015-12-24 00:25:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
cd "${srcdir}/freetype-${pkgver}/build-${_arch}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "${pkgdir}/usr/${_arch}/share/"
|
|
|
|
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a
|
|
|
|
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
|
|
|
|
done
|
2015-12-24 00:25:30 +01:00
|
|
|
}
|