updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / xmlrpc-c-svn / PKGBUILD
blobfdc3e19a0a28c19ec2fd518080ae2f686303ef17
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>
7 pkgname=xmlrpc-c-svn
8 _pkgname="${pkgname%-*}"
9 pkgver=2065
10 pkgrel=1
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}")
20 source=()
21 md5sums=()
23 _svnmod="${_pkgname}"
24 _svntrunk="https://${_pkgname}.svn.sourceforge.net/svnroot/${_pkgname}/trunk"
26 build() {
27   cd "${srcdir}"
29   #svn {{{
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."
34   else
35     svn co "${_svntrunk}" "${_svnmod}" -r "${pkgver}"
36   fi
37   msg "SVN checkout done or server timeout."
38   cd "${srcdir}"
39   if [ -d "${_svnmod}-build" ]; then
40     rm -rf "${_svnmod}-build"
41   fi
42   cp -rf "${_svnmod}" "${_svnmod}-build"
43   cd "${_svnmod}-build"
44   #}}}
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: