1 # Maintainer: Simon Jacquin <simon@jacquin.me>
6 pkgdesc="A simple, lightweight C library for writing XMPP clients"
8 url="http://strophe.im/libstrophe/"
11 makedepends=('git' 'check' 'doxygen')
13 _gitroot="git://github.com/metajack/libstrophe.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
29 cd "$srcdir/$_gitname"
32 ./configure --prefix=/usr --with-libxml2 || return 1
39 cd "$srcdir/$_gitname"
41 make DESTDIR="${pkgdir}" install || return 1
43 mkdir -p ${pkgdir}/usr/include/strophe/
44 install -m644 -t ${pkgdir}/usr/include/strophe/ strophe.h strophepp.h
46 mkdir -p ${pkgdir}/usr/share/doc/
47 cp -r docs/ ${pkgdir}/usr/share/doc/libstrophe