# $Id: PKGBUILD 75673 2012-08-28 21:19:22Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Daenyth # Contributor: Pierre Schmitz # Contributor: Vitaliy Berdinskikh pkgname=xmlrpc-c pkgver=1.31.04 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') makedepends=('libtool' 'setconf') options=('!makeflags' '!libtool' '!emptydirs') source=("$pkgname-advanced-$pkgver.tar.gz::http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/advanced.tar.gz") sha256sums=('16095f8ed4531079ce07ca2e2503cddbc1d4e3734e9ea81669d468f2787275d9') build() { cd "$srcdir/advanced" [ "$CARCH" != "i686" ] && export CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr \ --mandir=/usr/share/man \ --enable-libxml2-backend \ --disable-cgi-server \ --disable-libwww-client \ --disable-wininet-client \ --enable-cplusplus mkdir include/curl touch include/curl/types.h make CFLAGS_PERSONAL="$CFLAGS" make CFLAGS_PERSONAL="$CFLAGS" -C tools } package() { cd "$srcdir/advanced" make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" -C tools 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: