diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/xmlrpc-c/APKBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/user/xmlrpc-c/APKBUILD b/user/xmlrpc-c/APKBUILD new file mode 100644 index 000000000..b4e2f4d4f --- /dev/null +++ b/user/xmlrpc-c/APKBUILD @@ -0,0 +1,72 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=xmlrpc-c +pkgver=1.51.05 +pkgrel=0 +pkgdesc="This library provides a modular implementation of XML-RPC for C and C++" +url="http://xmlrpc-c.sourceforge.net/" +arch="all" +license="BSD-3-Clause AND MIT" +depends="" +depends_dev="libxml2-dev" +makedepends="$depends_dev libtool curl-dev zlib-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-client + $pkgname-client++:clientxx xmlrpc-c++:cxx $pkgname-abyss" +source="$pkgname-$pkgver.tar::https://downloads.sourceforge.net/project/xmlrpc-c/Xmlrpc-c%20Super%20Stable/$pkgver/$pkgname-$pkgver.tgz" + +prepare() { + update_config_sub + default_prepare +} + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --disable-libwww-client \ + --disable-wininet-client + make +} + +package() { + make DESTDIR="$pkgdir" install + install -m 644 -D doc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +check() { + make check +} + +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() { + 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/ +} + +sha512sums="f1dc31f824448a31e476c9de65b8250e282ae1d4a2e683ac02c69707afa9e9ae3c7fee9446992eeb91e9861bad54fca43d3f40acdbf61f1fae9e6b5c590be881 xmlrpc-c-1.51.05.tar" |