blob: bbd6533b6d853609f3c5047a5081b398a924a52b (
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
|
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
pkgname=mingw-w64-gloox
pkgver=1.0.23
pkgrel=1
pkgdesc="C++ libraries for development of Jabber client/component/server (mingw-w64)"
arch=('any')
url="http://camaya.net/gloox"
license=("GPL")
depends=('mingw-w64-libidn' 'mingw-w64-gnutls')
makedepends=('mingw-w64-configure')
options=('!strip' '!buildflags' 'staticlibs')
source=("https://camaya.net/download/gloox-${pkgver}.tar.bz2"
"gloox-1.0.21-fix-undefined-reference.patch")
sha256sums=('97cb6a0c07e320ffa4a7c66e8ab06b2361086271dc87ed2398befef4e8435f8a'
'4b293353b21b757df5e41237108075a9e2906af2189ff625460e05f132ff4510')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/gloox-${pkgver}/"
patch -Np1 -i "${srcdir}/gloox-1.0.21-fix-undefined-reference.patch"
autoreconf -fiv
}
build() {
cd "${srcdir}/gloox-${pkgver}/"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
LIBS+=" -lssp" ${_arch}-configure \
--without-tests \
--without-examples \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/gloox-${pkgver}/build-${_arch}"
make DESTDIR="${pkgdir}" install
${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
done
}
|