summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1222b2d287720d8ec16d87d4ef43cebaa9cc45dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Anatol Pomozov <anatol@google.com>

pkgname=muduo
pkgver=1.0.8
pkgrel=1
pkgdesc='A C++ non-blocking multi-threaded network library'
url='https://github.com/chenshuo/muduo'
license=(BSD)
arch=(i686 x86_64)
depends=(protobuf)
makedepends=(cmake boost)
options=(staticlibs)
source=(muduo-$pkgver.zip::https://github.com/chenshuo/muduo/archive/v$pkgver.zip)
sha1sums=('c30873460d12e601d9d09ae78741b4a00e3725dc')

build() {
  cd muduo-$pkgver
  sed -i '/-Werror/d' CMakeLists.txt
  BUILD_NO_EXAMPLES=1 INSTALL_DIR=/usr ./build.sh
}

package() {
  cd build/release
  make install DESTDIR="$pkgdir"
}