update to pango 1.45.4

This commit is contained in:
Andy Tao
2020-07-31 10:45:06 +08:00
committed by GitHub
parent 87f2a70239
commit 61c8a75b5b

View File

@@ -4,8 +4,7 @@
_realname=pango
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
# Don't update to 1.44.0! https://gitlab.gnome.org/GNOME/pango/issues/385
pkgver=1.45.3
pkgver=1.45.4
pkgrel=1
pkgdesc="A library for layout and rendering of text (mingw-w64)"
arch=('any')
@@ -27,7 +26,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-libthai")
options=('staticlibs' 'strip' 'emptydirs')
source=("https://download.gnome.org/sources/pango/${pkgver:0:4}/${_realname}-${pkgver}.tar.xz")
sha256sums=('1f75c1ebab3d298bb0c18f420440b507a95ce4b98905274f4af80831ff7ee67d')
sha256sums=('3843c2eda760a4dfa998cc9c12db25da1da26ae01e8d847a9afeba684b7bde7b')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
@@ -42,7 +41,8 @@ build() {
meson \
--default-library shared \
--buildtype plain \
-Dintrospection=false \
-Denable_docs=true \
-Dgir=true \
../${_realname}-${pkgver}
ninja
@@ -50,15 +50,16 @@ build() {
for pcfile in meson-private/*.pc; do
sed -s "s|$(cygpath -m ${MINGW_PREFIX})|${MINGW_PREFIX}|g" -i "${pcfile}"
done
cd "${srcdir}"
[[ -d build-static-${MINGW_CHOST} ]] && rm -rf build-static-${MINGW_CHOST}
mkdir -p build-static-${MINGW_CHOST}
cd build-static-${MINGW_CHOST}
meson \
--default-library static \
--buildtype plain \
-Denable_docs=false \
-Dgir=false \
-Dintrospection=false \
../${_realname}-${pkgver}
@@ -68,7 +69,7 @@ build() {
package() {
cd "${srcdir}/build-static-${MINGW_CHOST}"
DESTDIR=${pkgdir}${MINGW_PREFIX} ninja install
cd "${srcdir}/build-${MINGW_CHOST}"
DESTDIR=${pkgdir}${MINGW_PREFIX} ninja install