2015-11-30 21:17:01 +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-11-30 21:17:01 +01:00
|
|
|
pkgname=mingw-w64-freetype2
|
2022-05-01 13:55:22 +02:00
|
|
|
pkgver=2.12.1
|
2022-06-07 13:21:16 +02:00
|
|
|
pkgrel=2
|
2017-05-20 15:53:34 +02:00
|
|
|
pkgdesc='Font rasterization library (mingw-w64)'
|
2015-11-30 21:17:01 +01:00
|
|
|
arch=('any')
|
2017-05-20 15:53:34 +02:00
|
|
|
url='https://www.freetype.org/'
|
2015-11-30 21:17:01 +01:00
|
|
|
license=('GPL')
|
2021-08-26 20:54:38 +02:00
|
|
|
depends=(mingw-w64-crt mingw-w64-zlib mingw-w64-bzip2 mingw-w64-brotli)
|
|
|
|
makedepends=(mingw-w64-gcc mingw-w64-meson)
|
2016-07-12 17:36:14 +02:00
|
|
|
provides=(mingw-w64-freetype)
|
|
|
|
replaces=(mingw-w64-freetype)
|
|
|
|
conflicts=(mingw-w64-freetype)
|
2015-11-30 21:17:01 +01:00
|
|
|
options=(!strip !buildflags !libtool staticlibs)
|
2020-12-29 20:21:49 +01:00
|
|
|
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
|
2022-03-03 11:57:55 +01:00
|
|
|
0004-Enable-long-PCF-family-names.patch)
|
2022-05-01 13:55:22 +02:00
|
|
|
sha256sums=('4766f20157cc4cf0cd292f80bf917f92d1c439b243ac3018debf6b9140c41a7f'
|
2020-12-29 20:21:49 +01:00
|
|
|
'SKIP'
|
2022-04-04 23:22:35 +02:00
|
|
|
'12c869eeba212c74d07d3d7815848b047ecb5282d5463dffb3bb6d219315d4da'
|
|
|
|
'2497dcb3650271db9bb7ad4f3379b5b3c6a19f5ca5388dd9ba7d42b5c15c8c4f'
|
|
|
|
'caa0bc7d3dfa3b4c6b9beecda6141405dafe540f99a655dc83d1704fa232ac20'
|
|
|
|
'8bf978cd1abd73f54c53f7d214c368b1fd8921cd9800d2cc84427c662ffbbdcb')
|
|
|
|
validpgpkeys=(E30674707856409FF1948010BE6C3AAC63AD8E3F) # Werner Lemberg <wl@gnu.org>
|
2015-11-30 21:17:01 +01:00
|
|
|
|
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-11-30 21:17:01 +01:00
|
|
|
|
|
|
|
prepare() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "${srcdir}/freetype-${pkgver}"
|
2016-09-23 17:21:14 +02:00
|
|
|
|
2016-07-12 17:36:14 +02:00
|
|
|
patch -Np1 -i ../0001-Enable-table-validation-modules.patch
|
2020-12-29 20:21:49 +01:00
|
|
|
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
|
2015-11-30 21:17:01 +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}"
|
2022-06-07 13:21:16 +02:00
|
|
|
${_arch}-meson --default-library both -D zlib=enabled -D bzip2=enabled -D png=disabled -D brotli=enabled -D b_lto=false
|
2021-08-26 20:54:38 +02:00
|
|
|
ninja
|
2015-12-24 16:50:30 +01:00
|
|
|
done
|
2015-11-30 21:17:01 +01:00
|
|
|
}
|
|
|
|
|
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}"
|
2021-08-26 20:54:38 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install
|
2015-12-24 16:50:30 +01:00
|
|
|
rm -rf "${pkgdir}/usr/${_arch}/share/"
|
|
|
|
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a
|
|
|
|
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
|
2021-08-26 20:54:38 +02:00
|
|
|
${_arch}-ranlib "${pkgdir}/usr/${_arch}/lib/"*.a
|
2015-12-24 16:50:30 +01:00
|
|
|
done
|
2015-11-30 21:17:01 +01:00
|
|
|
}
|