1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
2 # Contributor: Jonny Gerold <jonny@fsk141.com>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
4 # Contributor: Vitaliy Berdinskikh <skipper13@root.ua>
5 # Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
8 _pkgname="${pkgname%-*}"
11 pkgdesc="This library provides a modular implementation of XML-RPC for C and C++"
12 url="http://xmlrpc-c.sourceforge.net"
13 license=("custom:xmlrpc-c")
14 arch=("i686" "x86_64")
15 depends=("curl" "libxml2")
16 makedepends=("subversion")
17 options=("!makeflags" "!libtool")
18 conflicts=("${_pkgname}")
19 provides=("${_pkgname}")
24 _svntrunk="https://${_pkgname}.svn.sourceforge.net/svnroot/${_pkgname}/trunk"
30 msg "Connecting to SVN server..."
31 if [ -d "${_svnmod}" ]; then
32 (cd "${_svnmod}" && svn update -r "${pkgver}")
33 msg "The local repository was updated."
35 svn co "${_svntrunk}" "${_svnmod}" -r "${pkgver}"
37 msg "SVN checkout done or server timeout."
39 if [ -d "${_svnmod}-build" ]; then
40 rm -rf "${_svnmod}-build"
42 cp -rf "${_svnmod}" "${_svnmod}-build"
46 [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
48 ./configure --prefix=/usr \
49 --mandir=/usr/share/man \
50 --enable-libxml2-backend \
51 --disable-cgi-server \
52 --disable-abyss-server \
53 --disable-libwww-client \
54 --disable-wininet-client
56 make CFLAGS_PERSONAL="${CFLAGS}"
57 make DESTDIR="${pkgdir}" install
59 install -Dm644 "doc/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
61 # vim:set ts=2 sw=2 et: