updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pion-net / PKGBUILD
blobebd6d9587fa34020a1c4ebd17a65fb9dcdd1c0c1
1 # Maintainer: David Watzke <david@watzke.cz>
3 pkgname=pion-net
4 pkgver=4.0.5
5 pkgrel=1
6 pkgdesc="a C++ development library for implementing lightweight HTTP interfaces"
7 url="http://www.pion.org/projects/pion-network-library"
8 arch=('i686' 'x86_64')
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')
16 build() {
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
32         make
35 package() {
36         cd "$srcdir/$pkgname-$pkgver"
37         make DESTDIR="$pkgdir" install
39         # install license
40         install -D -m0755 COPYING "$pkgdir/usr/share/licenses/$pkgname/Boost"