blob: a0c2a2c2527434acd1f2d169080b9413a595cc81 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: pingplug < aur at pingplug dot me >
# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >
_commit=5b1551e933d069d15169eb7c8bd6b2e95cbfe230 # tags/1.54.0
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgname=mingw-w64-pango
pkgver=1.54.0
pkgrel=1
pkgdesc="A library for layout and rendering of text (mingw-w64)"
arch=('any')
url="https://pango.gnome.org/"
license=('LGPL-2.1-or-later')
depends=('mingw-w64-harfbuzz'
'mingw-w64-fribidi'
'mingw-w64-fontconfig'
'mingw-w64-freetype2'
'mingw-w64-cairo'
'mingw-w64-libthai')
makedepends=('glib2-devel'
'gobject-introspection'
'gtk-doc'
'mingw-w64-poppler'
'mingw-w64-meson'
'mingw-w64-wine'
'git')
options=('!strip' 'staticlibs' '!buildflags')
source=("git+https://gitlab.gnome.org/GNOME/pango.git#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/pango"
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd "${srcdir}/pango"
}
build() {
export NEED_WINE=1
cd "${srcdir}/pango"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-meson \
--buildtype=release \
--default-library=both \
-D 'fontconfig=enabled' \
-D 'gtk_doc=false' \
-D 'introspection=disabled' \
..
ninja
popd
done
}
package() {
export NEED_WINE=1
for _arch in ${_architectures}; do
cd "${srcdir}/pango/build-${_arch}"
DESTDIR="${pkgdir}" ninja install
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' | xargs ${_arch}-strip -g
done
}
# vim:set ts=2 sw=2 et:
|