diff options
author | Dominic | 2022-02-26 17:21:20 +0100 |
---|---|---|
committer | Dominic | 2022-02-26 17:21:20 +0100 |
commit | 3fe947d1b9a362e6e77cd30476aed59ee0dcfe22 (patch) | |
tree | 7bbd391e80ec115c5e83d506301c3921194d6563 | |
parent | a69a9bebee1956127fa9cbf1f54a816b1ff1a8ab (diff) | |
download | aur-3fe947d1b9a362e6e77cd30476aed59ee0dcfe22.tar.gz |
build only static libraries
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 13 insertions, 30 deletions
@@ -1,4 +1,4 @@ -pkgbase = mingw-w64-freetype2 +pkgbase = mingw-w64-freetype2-static pkgdesc = Font rasterization library (mingw-w64) pkgver = 2.11.0 pkgrel = 1 @@ -12,11 +12,8 @@ pkgbase = mingw-w64-freetype2 depends = mingw-w64-bzip2 depends = mingw-w64-brotli depends = mingw-w64-harfbuzz - provides = mingw-w64-freetype - provides = mingw-w64-freetype2-bootstrap - conflicts = mingw-w64-freetype - conflicts = mingw-w64-freetype2-bootstrap - replaces = mingw-w64-freetype + provides = mingw-w64-freetype2=2.11.0 + conflicts = mingw-w64-freetype2 replaces = mingw-w64-freetype2-bootstrap options = !strip options = !buildflags @@ -40,4 +37,4 @@ pkgbase = mingw-w64-freetype2 sha256sums = 2b13b8cc9acc3e56be6b0f8102d648864227bf93637bc956d5052c77c8509782 sha256sums = 21a2d243bc6b44d1cdb88ef29af2bd5ceda8d0faaf928bdc2c078a474ddc61f1 -pkgname = mingw-w64-freetype2 +pkgname = mingw-w64-freetype2-static @@ -1,20 +1,19 @@ -# Maintainer: Martchus <martchus@gmx.net> +# -*- mode: Shell-script; eval: (setq tab-width 2) -*- +# Maintainer: Dominic Meiser < git at msrd0 dot de > +# Contributor: Martchus <martchus@gmx.net> -# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where -# you also find the URL of a binary repository. - -pkgname=mingw-w64-freetype2 +pkgname=mingw-w64-freetype2-static pkgver=2.11.0 pkgrel=1 pkgdesc='Font rasterization library (mingw-w64)' arch=('any') url='https://www.freetype.org/' license=('GPL') -depends=(mingw-w64-crt mingw-w64-zlib mingw-w64-bzip2 mingw-w64-brotli) +depends=(mingw-w64-crt mingw-w64-zlib mingw-w64-bzip2 mingw-w64-brotli mingw-w64-harfbuzz) makedepends=(mingw-w64-gcc mingw-w64-meson) -provides=(mingw-w64-freetype) -replaces=(mingw-w64-freetype) -conflicts=(mingw-w64-freetype) +provides=("mingw-w64-freetype2=$pkgver") +conflicts=(mingw-w64-freetype2) +replaces=(mingw-w64-freetype2-bootstrap) options=(!strip !buildflags !libtool staticlibs) source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz{,.sig} 0001-Enable-table-validation-modules.patch @@ -33,18 +32,6 @@ sha256sums=('8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7' '21a2d243bc6b44d1cdb88ef29af2bd5ceda8d0faaf928bdc2c078a474ddc61f1') validpgpkeys=(58E0C111E39F5408C5D3EC76C1A60EACE707FDA5) # Werner Lemberg <wl@gnu.org> -if [[ $pkgname = 'mingw-w64-freetype2-bootstrap' ]]; then - _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) - replaces+=(${_provides}) -fi -provides+=(${_provides}) -conflicts+=(${_provides}) - _architectures='i686-w64-mingw32 x86_64-w64-mingw32' prepare() { @@ -63,7 +50,7 @@ build() { for _arch in ${_architectures}; do mkdir -p "${srcdir}/freetype-${pkgver}/build-${_arch}" cd "${srcdir}/freetype-${pkgver}/build-${_arch}" - ${_arch}-meson --default-library both -D zlib=enabled -D bzip2=enabled -D png=disabled -D brotli=enabled + ${_arch}-meson --default-library static -D zlib=enabled -D bzip2=enabled -D png=disabled -D brotli=enabled ninja done } @@ -74,7 +61,6 @@ package() { DESTDIR="${pkgdir}" ninja install rm -rf "${pkgdir}/usr/${_arch}/share/" ${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a - ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll ${_arch}-ranlib "${pkgdir}/usr/${_arch}/lib/"*.a done } |