1 # Maintainer: David Watzke <david@watzke.cz>
6 pkgdesc="a C++ development library for implementing lightweight HTTP interfaces"
7 url="http://www.pion.org/projects/pion-network-library"
9 license=('custom:Boost')
10 depends=('boost-libs' 'boost' 'log4cpp')
11 source=("http://www.pion.org/files/$pkgname-$pkgver.tar.bz2"
12 "$pkgname-$pkgver-build.patch")
13 sha256sums=('4fa6759676c5ec1d4d79a272d545930486d6c8c94790a84fe7645577be29cc5b'
14 '67ccddca4144fbd8e89043048a517cf046f238156ed174474db8e09afc153832')
17 cd "$srcdir/$pkgname-$pkgver"
19 patch -p1 -i "$srcdir/$pkgname-$pkgver-build.patch"
21 # override configure bug (forces debug even when nobody asked for it)
22 sed -i "s/ -ggdb//g;s/ -DNDEBUG//g" configure
24 ./configure --prefix=/usr --disable-doxygen-doc --with-log4cpp
26 find -name Makefile -print0 | xargs -0 \
27 sed -i -r '/^C(XX)?FLAGS/ s/$/ -DBOOST_FILESYSTEM_VERSION=2/' Makefile
29 # override Makefile bug
30 sed -i "/docs:/ s/doxygen-doc//" Makefile
36 cd "$srcdir/$pkgname-$pkgver"
37 make DESTDIR="$pkgdir" install
40 install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost"