blob: 2e9ff850375079fd161cd17ebaae11082c73043b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_basename="pangomm"
_name="${_basename}-2.48"
pkgname="mingw-w64-${_name}"
pkgver=2.56.1
pkgrel=1
pkgdesc="C++ bindings for Pango (mingw-w64)"
arch=('any')
url="https://www.gtkmm.org"
license=('LGPL-2.1-or-later')
depends=('mingw-w64-cairomm-1.16' 'mingw-w64-glib2>=2.68' 'mingw-w64-glibmm-2.68'
'mingw-w64-libsigc++-3.0' 'mingw-w64-pango>=1.56')
makedepends=('mingw-w64-meson>=0.62' 'mm-common')
options=('!strip' '!buildflags' 'staticlibs')
_pkgsrc="${_basename}-${pkgver}"
source=("${_pkgsrc}.tar.xz::https://download.gnome.org/sources/${_basename}/${pkgver%.*}/${_pkgsrc}.tar.xz")
sha256sums=('539f5aa60e9bdc6b955bb448e2a62cc14562744df690258040fbb74bf885755d')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
# export CPPFLAGS+=" -D_REENTRANT"
cd "${srcdir}"
for _arch in ${_architectures}; do
mkdir -p "${_pkgsrc}/build-${_arch}"
${_arch}-meson "${_pkgsrc}" "${_pkgsrc}/build-${_arch}" \
-D maintainer-mode=true \
-D build-documentation=false
meson compile -C "${_pkgsrc}/build-${_arch}"
done
}
package() {
cd "${srcdir}"
for _arch in ${_architectures}; do
meson install -C "${_pkgsrc}/build-${_arch}" --destdir "${pkgdir}"
find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec "${_arch}-strip" "{}" \;
find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec "${_arch}-strip" --strip-unneeded "{}" \;
find "${pkgdir}/usr/${_arch}" \( -name '*.a' -o -name '*.dll' \) -exec "${_arch}-strip" -g '{}' ';'
done
}
# vim: ts=2 sw=2 et:
|