updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / loudmouth-git / PKGBUILD
blob50d8131feb01e5d2a57a3ef26653928d83bcfe44
1 # Contributor: Ian Yang <doit[dot]ian[at]gmail[dot]com>
3 pkgname=loudmouth-git
4 pkgver=20091120
5 pkgrel=1
6 pkgdesc="An asynchronous XMPP library"
7 arch=('i686' 'x86_64')
8 url="http://www.loudmouth-project.org/"
9 license=('LGPL')
10 depends=('glib2>=2.18.3' 'gnutls>=2.6.3' 'libidn')
11 options=('!libtool')
12 makedepends=('gcc' 'git' 'perlxml' 'pkgconfig' 'gtk-doc')
13 conflicts=('loudmouth')
14 provides=('loudmouth')
15 replaces=('loudmouth')
16 source=(gnutls.patch)
17 md5sums=('2bc4c9bd4ee7cfd672c1d50c61cf0411')
19 _gitroot="git://github.com/engineyard/loudmouth.git"
20 _gitname="loudmouth"
22 build() {
23     cd ${srcdir}
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."
30     else
31         git clone $_gitroot
32     fi
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
43     # Configure Source
44     ./autogen.sh --prefix=/usr
46     export CFLAGS="$CFLAGS -DHAVE_STRNDUP -fno-strict-aliasing"
47     ./configure --prefix=/usr \
48                 --disable-debug \
49             --disable-static || return 1
50     make || return 1
51     make DESTDIR="${pkgdir}" install || return 1
53