[arch-commits] Commit in xmlrpc-c/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Sun Nov 11 12:44:22 UTC 2018


    Date: Sunday, November 11, 2018 @ 12:44:19
  Author: arodseth
Revision: 406352

upgpkg: xmlrpc-c 1:1.43.08-1

Modified:
  xmlrpc-c/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++------------------------
 1 file changed, 18 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-11 11:13:44 UTC (rev 406351)
+++ PKGBUILD	2018-11-11 12:44:19 UTC (rev 406352)
@@ -1,60 +1,54 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Daenyth <Daenyth+Arch at gmail.com>
 # Contributor: Pierre Schmitz <pierre at archlinux.de>
 # Contributor: Vitaliy Berdinskikh <skipper13 at root.ua>
 
 pkgname=xmlrpc-c
-# Using the Stable version
-pkgver=1.43.06
-pkgrel=2
+# Using the "stable" version
+pkgver=1.43.08
+pkgrel=1
 epoch=1
 pkgdesc='XML-RPC for C and C++'
 arch=('x86_64')
 url='http://xmlrpc-c.sourceforge.net/'
 license=('custom')
-depends=('curl' 'libxml2')
-makedepends=('libtool' 'setconf' 'subversion')
-options=('!makeflags' '!emptydirs')
-source=("svn://svn.code.sf.net/p/xmlrpc-c/code/stable")
-sha1sums=('SKIP')
+depends=('curl')
+makedepends=('libtool' 'setconf')
+options=('!emptydirs')
+source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tgz")
+sha256sums=('c9f5b584a42493877ae0f09ed680d94e035ab389e8fa1873b1ec42118d5cfca3')
 
-prepare() {
-  sed 's/xmlParserCtx /xmlParserCtxt/g' -i stable/src/xmlrpc_libxml2.c
-}
-
 build() {
-  cd stable
+  cd "$pkgname-$pkgver"
 
-  [ "$CARCH" != "i686" ] && export CFLAGS="$CFLAGS -fPIC"
-
   ./configure \
     --prefix=/usr \
     --mandir=/usr/share/man \
-    --enable-libxml2-backend \
+    --disable-libxml2-backend \
     --disable-cgi-server \
     --disable-libwww-client \
     --disable-wininet-client \
-    --enable-abyss \
     --enable-cplusplus
 
   mkdir -p include/curl
   touch include/curl/types.h
 
-  make CFLAGS_PERSONAL="$CFLAGS" CXXFLAGS_PERSONAL="$CXXFLAGS"
-  make -C tools CFLAGS_PERSONAL="$CFLAGS" CXXFLAGS_PERSONAL="$CXXFLAGS"
+  make CFLAGS_PERSONAL="$CFLAGS -fPIC -w" CXXFLAGS_PERSONAL="$CXXFLAGS -fPIC -w"
+  make -C tools CFLAGS_PERSONAL="$CFLAGS -fPIC -w" CXXFLAGS_PERSONAL="$CXXFLAGS -fPIC -w"
 }
 
 package() {
-  cd stable
+  cd "$pkgname-$pkgver"
 
   make DESTDIR="$pkgdir" install
-  make -C tools DESTDIR="$pkgdir" install
-  install -Dm 644 doc/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  make DESTDIR="$pkgdir" -C tools install
 
   # Remove references to build directory
   setconf "$pkgdir/usr/bin/xmlrpc-c-config" BLDDIR ''
   setconf "$pkgdir/usr/bin/xmlrpc-c-config" ABS_SRCDIR ''
+
+  # Custom license
+  install -Dm644 doc/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-# getver: -u 2 xmlrpc-c.sourceforge.net/change_stable.html
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list