1 # Contributor: Kun Wang <ifreedom.dot.cn.at.gmail.dot.com>
7 pkgdesc="A reactor-based light weight C++ network library"
10 url="http://code.google.com/p/muduo"
11 license=('New BSD License')
12 depends=('boost' 'linux-api-headers>2.6.28')
13 optdepends=("protobuf")
14 makedepends=('cmake' 'make')
18 # options=('!libtool')
19 source=("http://muduo.googlecode.com/files/muduo-$pkgver-$pkgsubver.tar.gz"
21 md5sums=('858091c7dc3f683f58133666814aad1b'
22 '6dbc46ddd52206adffed8758b3e65d7c')
29 patch -p1 <../build2.patch
31 BUILD_TYPE=Release INSTALL_DIR=/usr \
32 EXTRA_CMAKE_ARGS="-DBUILD_TESTS=off -DBUILD_EXAMPLES=off" ./build.sh
36 ls $1 | while read f; do
39 install -Dm644 $file $2
40 elif [ -d $file ]; then
41 local dir="$2/`basename $f`"
43 install_dir $file $dir
50 # install license files
51 mkdir -p $pkgdir/usr/share/licenses/$_name
52 install -Dm644 License \
53 $pkgdir/usr/share/licenses/$_name/License
57 mkdir -p $pkgdir/usr/share/doc/$_name
58 install_dir html $pkgdir/usr/share/doc/$_name
61 make DESTDIR=$pkgdir install || return 1
63 # rm -rf "$srcdir/build"