blob: c2b6badeef04006f3a7227bdec4e585337b17d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#! /bin/bash
# Maintainer: Jorge Barroso <jorge.barroso.11 at gmail dot com>
# Contributor: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
# Contributor: Jonny Gerold <jonny@fsk141.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Vitaliy Berdinskikh <skipper13@root.ua>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
pkgname=xmlrpc-c-svn
_pkgname=${pkgname%-*}
pkgver=2450
pkgrel=1
pkgdesc="This library provides a modular implementation of XML-RPC for C and C++"
url="http://xmlrpc-c.sourceforge.net"
license=("custom:xmlrpc-c")
arch=("i686" "x86_64")
depends=("curl" "libxml2")
makedepends=("subversion")
options=("!makeflags" "!libtool")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
_svnmod="${_pkgname}"
_svntrunk="https://${_pkgname}.svn.sourceforge.net/svnroot/${_pkgname}/trunk"
build() {
cd ${srcdir}
msg "Connecting to SVN server..."
if [ -d "${_svnmod}" ]; then
(cd "${_svnmod}" && svn update -r "${pkgver}")
msg "The local repository was updated."
else
svn co "${_svntrunk}" "${_svnmod}" -r "${pkgver}"
fi
msg "SVN checkout done or server timeout."
cd "${srcdir}"
if [ -d "${_svnmod}-build" ]; then
rm -rf "${_svnmod}-build"
fi
cp -rf "${_svnmod}" "${_svnmod}-build"
cd "${_svnmod}-build"
[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--enable-libxml2-backend \
--disable-cgi-server \
--disable-abyss-server \
--disable-libwww-client \
--disable-wininet-client
make CFLAGS_PERSONAL=${CFLAGS}
}
package() {
cd "$srcdir/$_svnmod-build"
make DESTDIR=$pkgdir install
}
# vim:set ts=2 sw=2 et:
|