summaryrefslogtreecommitdiff
path: root/community/xmlrpc-c/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-27 03:40:36 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-27 03:40:36 +0000
commit266ddb4aa9aed9a6a66b5eb9e17da710e66c4987 (patch)
treec0d32fb7dc90ad7e6763780b1196adf05f972fe3 /community/xmlrpc-c/PKGBUILD
parentcda3f380f74d60573c1202f7f34a79c8182e341a (diff)
Tue May 27 03:35:23 UTC 2014
Diffstat (limited to 'community/xmlrpc-c/PKGBUILD')
-rw-r--r--community/xmlrpc-c/PKGBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/community/xmlrpc-c/PKGBUILD b/community/xmlrpc-c/PKGBUILD
index 453ba6c11..994de7f2e 100644
--- a/community/xmlrpc-c/PKGBUILD
+++ b/community/xmlrpc-c/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 100018 2013-10-31 03:01:57Z allan $
+# $Id: PKGBUILD 111892 2014-05-26 12:53:39Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Vitaliy Berdinskikh <skipper13@root.ua>
pkgname=xmlrpc-c
-pkgver=1.36.00
+pkgver=1.38.02
pkgrel=1
epoch=1
pkgdesc='XML-RPC for C and C++'
@@ -13,13 +13,17 @@ arch=('x86_64' 'i686')
url='http://xmlrpc-c.sourceforge.net/'
license=('custom')
depends=('curl' 'libxml2')
-makedepends=('libtool' 'setconf')
+makedepends=('libtool' 'setconf' 'python')
options=('!makeflags' '!emptydirs')
-source=('svn://svn.code.sf.net/p/xmlrpc-c/code/advanced#revision=2545')
+source=('svn://svn.code.sf.net/p/xmlrpc-c/code/advanced')
sha1sums=('SKIP')
+pkgver() {
+ python -c 'print("%01d.%02d.%02d" % tuple(map(int, (x.rsplit(" ",1)[1] for x in open("advanced/version.mk").read().split("\n")[-4:-1]))))'
+}
+
build() {
- cd "$srcdir/advanced"
+ cd advanced
[ "$CARCH" != "i686" ] && export CFLAGS="$CFLAGS -fPIC"
./configure --prefix=/usr \
@@ -33,14 +37,14 @@ build() {
mkdir include/curl
touch include/curl/types.h
make CFLAGS_PERSONAL="$CFLAGS"
- make CFLAGS_PERSONAL="$CFLAGS" -C tools
+ make -C tools CFLAGS_PERSONAL="$CFLAGS"
}
package() {
- cd "$srcdir/advanced"
+ cd advanced
make DESTDIR="$pkgdir" install
- make DESTDIR="$pkgdir" -C tools install
+ make -C tools 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 ''