1 # Contributor: Ian Yang <doit[dot]ian[at]gmail[dot]com>
6 pkgdesc="An asynchronous XMPP library"
8 url="http://www.loudmouth-project.org/"
10 depends=('glib2>=2.18.3' 'gnutls>=2.6.3' 'libidn')
12 makedepends=('gcc' 'git' 'perlxml' 'pkgconfig' 'gtk-doc')
13 conflicts=('loudmouth')
14 provides=('loudmouth')
15 replaces=('loudmouth')
17 md5sums=('2bc4c9bd4ee7cfd672c1d50c61cf0411')
19 _gitroot="git://github.com/engineyard/loudmouth.git"
25 msg "Connecting to GIT server..."
27 if [ -d ${srcdir}/$_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 # Copy Latest files to Build Directory
38 rm -rf ${srcdir}/$_gitname-build
39 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40 cd ${srcdir}/$_gitname-build
41 patch -p1< ${startdir}/gnutls.patch
44 ./autogen.sh --prefix=/usr
46 export CFLAGS="$CFLAGS -DHAVE_STRNDUP -fno-strict-aliasing"
47 ./configure --prefix=/usr \
49 --disable-static || return 1
51 make DESTDIR="${pkgdir}" install || return 1