blob: 7ec1db6f1f8a6b9e7bb530200fa791c5d2f1fc8b (
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
|
pkgname=mingw-w64-pango
pkgver=1.38.1
pkgrel=1
pkgdesc="A library for layout and rendering of text (mingw-w64)"
arch=(any)
url="http://www.pango.org"
license=("LGPL")
makedepends=(mingw-w64-configure gtk-doc)
depends=(mingw-w64-harfbuzz mingw-w64-cairo)
options=(staticlibs !strip !buildflags)
source=("http://ftp.gnome.org/pub/gnome/sources/pango/${pkgver:0:4}/pango-${pkgver}.tar.xz"
"0001-no-unconditional-xft-please.all.patch"
"0002-msvc-is-impotent-but-not.mingw.patch")
sha256sums=('1320569f6c6d75d6b66172b2d28e59c56ee864ee9df202b76799c4506a214eb7'
'eccc044bbd156b252f5a13f7894c3a6cd1efc6ea80eaee57a5865895b192616d'
'240d21474157c0deabc2660593ac0414565ddf30c304b08b74a09072c910b34d')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "$srcdir/pango-$pkgver"
patch -p1 -i ${srcdir}/0001-no-unconditional-xft-please.all.patch
patch -p1 -i ${srcdir}/0002-msvc-is-impotent-but-not.mingw.patch
autoreconf -fi
sed -i 's/have_libthai=true/have_libthai=false/' configure
}
build() {
cd pango-$pkgver
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure \
--disable-introspection \
--disable-debug
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/pango-${pkgver}/build-${_arch}"
make -j1 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
rm -r "$pkgdir/usr/${_arch}/share"
done
}
|