summaryrefslogtreecommitdiff
path: root/community/xmlrpc-c/PKGBUILD
blob: 1e1eca0c15c195687f4e778ca28baa86615bc434 (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
# $Id: PKGBUILD 61501 2012-01-02 03:26:41Z daenyth $
# Maintainer: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Vitaliy Berdinskikh <skipper13@root.ua>

pkgname=xmlrpc-c
pkgver=2222
pkgrel=1
pkgdesc='This library provides a modular implementation of XML-RPC for C and C++'
arch=('i686' 'x86_64' 'mips64el')
url='http://xmlrpc-c.sourceforge.net/'
license=('custom:xmlrpc-c')
depends=('curl' 'libxml2' 'gcc-libs' 'zlib')
makedepends=('libtool')
options=('!makeflags' '!libtool')
source=("ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz")
md5sums=('5822ea50f50fb86b5f211ec6bd820e5e')

build() {
	[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"

	cd $srcdir/$pkgname-$pkgver
	./configure --prefix=/usr \
    --mandir=/usr/share/man \
		--enable-libxml2-backend \
		--disable-cgi-server \
		--disable-abyss-server \
		--disable-libwww-client \
		--disable-wininet-client

	make CFLAGS_PERSONAL="${CFLAGS}"
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR=$pkgdir install

	install -m 644 -D doc/COPYING $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et: