# $Id: PKGBUILD 69311 2012-04-13 13:20:52Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Daenyth # Contributor: Pierre Schmitz # Contributor: Vitaliy Berdinskikh pkgname=xmlrpc-c # The webpage is unclear on which version is the latest advanced version (2012-04-13) # Both the 1.29x series and 1.30.1 are mentioned. I'll go with 1.29.2 for now. pkgver=1.29.2 epoch=1 pkgrel=2 pkgdesc='XML-RPC for C and C++' arch=('i686' 'x86_64' 'mips64el') url='http://xmlrpc-c.sourceforge.net/' license=('custom') depends=('curl' 'libxml2' 'gcc-libs' 'zlib') makedepends=('libtool' 'setconf') options=('!makeflags' '!libtool') source=("$pkgname-advanced-$pkgver.tar.gz::http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced.tar.gz") sha256sums=('e710cb01c5931f03e9f2bea4a3cd33b3e240269ee576562221dc259806fb705b') build() { cd "$srcdir/advanced" [ "$CARCH" != "i686" ] && 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 mkdir include/curl touch include/curl/types.h make CFLAGS_PERSONAL="$CFLAGS" } package() { cd "$srcdir/advanced" make DESTDIR="$pkgdir" install install -Dm644 doc/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # Remove references to build directory setconf "$pkgdir/usr/bin/xmlrpc-c-config" BLDDIR "" setconf "$pkgdir/usr/bin/xmlrpc-c-config" ABS_SRCDIR "" } # vim:set ts=2 sw=2 et: