From 11711de1942a141f28faef695c4c78c8357fbf23 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Mar 2012 00:01:22 +0000 Subject: Mon Mar 5 00:01:22 UTC 2012 --- community-testing/pion-net/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 community-testing/pion-net/PKGBUILD (limited to 'community-testing/pion-net/PKGBUILD') diff --git a/community-testing/pion-net/PKGBUILD b/community-testing/pion-net/PKGBUILD new file mode 100644 index 000000000..714f38b37 --- /dev/null +++ b/community-testing/pion-net/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 67012 2012-03-03 08:13:30Z ibiru $ +# Maintainer: Lukas Jirkovsky +# Contributor: David Watzke + +pkgname=pion-net +pkgver=4.0.7 +pkgrel=3 +pkgdesc="A C++ development library for implementing lightweight HTTP interfaces" +url="http://www.pion.org/projects/pion-network-library" +arch=('i686' 'x86_64') +license=('custom:Boost') +depends=('boost-libs' 'openssl' 'log4cpp') +makedepends=('boost') +source=("http://www.pion.org/files/$pkgname-$pkgver.tar.bz2" + "$pkgname-4.0.5-build.patch") +md5sums=('761c8af8dc54102b637f8d91d162f987' + 'd75ea2af90163a81d2bc71fda00f0c00') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + patch -p1 -i "$srcdir/$pkgname-4.0.5-build.patch" + + # override configure bug (forces debug even when nobody asked for it) + sed -i "s/ -ggdb//g;s/ -DNDEBUG//g" configure + + ./configure --prefix=/usr --disable-doxygen-doc --with-log4cpp + + find -name Makefile -print0 | xargs -0 \ + sed -i -r '/^C(XX)?FLAGS/ s/$/ -DBOOST_FILESYSTEM_VERSION=2/' Makefile + + # override Makefile bug + sed -i "/docs:/ s/doxygen-doc//" Makefile + + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + # install license + install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost" +} -- cgit v1.2.3-54-g00ecf