blob: 416231b9f8392592745e1174ceb64f6db51560d7 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmlrpc-c
pkgver=1.25.23
pkgrel=1
pkgdesc="This library provides a modular implementation of XML-RPC for C and C++"
url="http://xmlrpc-c.sourceforge.net/"
arch="all"
license="custom:xmlrpc-c"
depends=
makedepends="libtool curl-dev libxml2-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-client
$pkgname-client++:clientxx xmlrpc-c++:cxx $pkgname-abyss"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tgz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--enable-libxml2-backend \
--disable-cgi-server \
--disable-libwww-client \
--disable-wininet-client
# no parallel builds :-(
make -C include &&\
make -C lib &&\
make -j1 -C src &&\
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m 644 -D doc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
rm -f "$pkgdir"/usr/lib/*.la
}
client() {
pkgdesc="C client libraries for xmlrpc-c"
replaces="$pkgname"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libxmlrpc_client.so.* "$subpkgdir"/usr/lib/
}
clientxx() {
replaces="libxml-c++"
pkgdesc="C++ client libraries for xmlrpc-c"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libxmlrpc_client++.so.* "$subpkgdir"/usr/lib/
}
cxx() {
pkgdesc="This library provides a modular implementation of XML-RPC for C++"
replaces="$pkgname"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*++* \
"$pkgdir"/usr/lib/libxmlrpc_packetsocket.so.* \
"$pkgdir"/usr/lib/libxmlrpc_cpp.so.* \
"$subpkgdir"/usr/lib/
}
abyss() {
pkgdesc="Abyss server libraries for C++"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*abyss* \
"$subpkgdir"/usr/lib/
}
md5sums="64bcca4757a5d9c382264b2bbd6a1683 xmlrpc-c-1.25.23.tgz"
sha256sums="d9e8f9dd7bb90d3e10f45754353a007cb58a0b54826aa1e0ed5a8e1b76b193bf xmlrpc-c-1.25.23.tgz"
sha512sums="9df3fbdb3d03b00c84a48043183fd66041f3597e4988002bfe7c35840574e43e3b6d8b746846edadbdbbb346b9f891a6be97cc9056feb740a4d7d2cc92e2f997 xmlrpc-c-1.25.23.tgz"
|