blob: f31783a3026d94164cb68e08c6f26e14f4306fae (
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
|
# Maintainer: pingplug < aur at pingplug dot me >
# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >
_commit=72b9a48f57de6204d99ce1c217b5609ee92ece9b # tags/2.15.0^0
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgname=mingw-w64-fontconfig
pkgver=2.15.0
pkgrel=1
pkgdesc="A library for configuring and customizing font access (mingw-w64)"
arch=('any')
url="https://www.freedesktop.org/wiki/Software/fontconfig/"
license=('custom')
depends=('mingw-w64-expat'
'mingw-w64-freetype2')
makedepends=('mingw-w64-configure'
'git'
'autoconf-archive'
'gperf'
'python-lxml'
'json-c'
'python-six')
options=('!strip' 'staticlibs' '!buildflags')
source=("git+https://gitlab.freedesktop.org/fontconfig/fontconfig.git#commit=${_commit}"
"0007-pkgconfig.mingw.patch")
sha256sums=('SKIP'
'af373531873da46d0356305da5444c1ec74f443cd2635ea2db6b7dadd1561f5b')
pkgver() {
cd fontconfig
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd fontconfig
patch -p1 -i ${srcdir}/0007-pkgconfig.mingw.patch
# do not build buggy test code
sed -i /test\\/Makefile/d configure.ac
sed -i "s/po-conf test/po-conf/g" Makefile.am
rm -r test
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd fontconfig
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure \
--with-arch=${_arch%-w64-mingw32} \
--disable-docs
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/fontconfig/build-${_arch}"
make DESTDIR="${pkgdir}" install
find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec rm {} \;
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:
|