blob: 3084815ec10254df61122b975fe78d650279c57e (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmlrpc-c
pkgver=1.06.40
pkgrel=0
pkgdesc="This library provides a modular implementation of XML-RPC for C and C++"
url="http://xmlrpc-c.sourceforge.net/"
arch="x86 x86_64"
license="custom:xmlrpc-c"
depends=
makedepends="libtool curl-dev libxml2-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc xmlrpc-c++:cxx"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tgz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--enable-libxml2-backend \
--disable-cgi-server \
--disable-abyss-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
install -m 644 -D doc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
cxx() {
pkgdesc="This library provides a modular implementation of XML-RPC for C++"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*++* "$subpkgdir"/usr/lib/
}
md5sums="684fd8b9edda6da55a58d2a18e5056c5 xmlrpc-c-1.06.40.tgz"
|