aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xmlrpc-epi/APKBUILD
blob: 118a215bc0eeffb2c890f0913201379c5b9cbffb (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
44
45
46
47
48
49
50
51
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=xmlrpc-epi
pkgver=0.54.1
pkgrel=2
pkgdesc="versatile xmlrpc and soap implementation"
url="http://xmlrpc-epi.sourceforge.net/"
arch="all"
license="MIT"
depends=
depends_dev="expat-dev libiconv-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="http://sourceforge.net/projects/xmlrpc-epi/files/xmlrpc-epi-base/$pkgver/xmlrpc-epi-$pkgver.tar.gz"

_builddir="$srcdir"/xmlrpc
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	msg "disabling sample build"
	sed -i 's:src sample:src:g' Makefile.am Makefile.in
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	mkdir "$pkgdir"/usr/include/xmlrpc-epi
	cp -R "$pkgdir"/usr/include/*.h "$pkgdir"/usr/include/xmlrpc-epi
	find "$pkgdir" -name *.la -print | xargs rm
}

md5sums="546ce341e7d79691371344449cb9e484  xmlrpc-epi-0.54.1.tar.gz"