diff options
author | root <root@rshg054.dnsready.net> | 2012-07-09 00:02:00 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-09 00:02:00 +0000 |
commit | 6f492df5ae2ab0d2bd117d6f1c458d52e2e24585 (patch) | |
tree | 51e61122d46459be560a778ce76bdf527edf5334 /community-staging/pion-net/PKGBUILD | |
parent | a522a5f63f3b5726081698bf742801fb1d242817 (diff) |
Mon Jul 9 00:02:00 UTC 2012
Diffstat (limited to 'community-staging/pion-net/PKGBUILD')
-rw-r--r-- | community-staging/pion-net/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community-staging/pion-net/PKGBUILD b/community-staging/pion-net/PKGBUILD new file mode 100644 index 000000000..5b223c9b1 --- /dev/null +++ b/community-staging/pion-net/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 73445 2012-07-07 19:16:54Z stativ $ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +# Contributor: David Watzke <david@watzke.cz> +pkgname=pion-net +pkgver=4.0.12 +pkgrel=2 +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" \ + gcc_4.7_fix.diff boost_1.50_support.diff) +md5sums=('baf0b6a006660dc4051c824e4660cb9d' + 'd6c5314678709184e983b301cea11566' + 'a77d35019e21f3956771c6caa2f01fbf') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # override configure bug (forces debug even when nobody asked for it) + sed -i "s/ -ggdb//g" configure + # override Makefile bug + sed -i "/docs:/ s/doxygen-doc//" Makefile.in + # fix compilation with new versions of gcc + patch -Np1 < "$srcdir"/gcc_4.7_fix.diff || true + # fix build with boost 1.50 - port to filesystem v3 + patch -Np1 < "$srcdir"/boost_1.50_support.diff || true + + ./configure --prefix=/usr --disable-doxygen-doc + + 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" +} |