# Maintainer: peeweep # Contributor: Anatol Pomozov pkgname=muduo pkgver=2.0.1 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=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha256sums=('5f93c17f9f15cd67c3b5bc38dc30479f97031c5c2a953a02433ac519668ccb69') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i '/-Werror/d' CMakeLists.txt sed -i 's/option(MUDUO_BUILD_EXAMPLES "Build Muduo examples" ON/option(MUDUO_BUILD_EXAMPLES "Build Muduo examples" OFF/' CMakeLists.txt INSTALL_DIR=/usr ./build.sh } package() { cd "${srcdir}/build/release-cpp11" make install DESTDIR="${pkgdir}" install -Dm644 "${srcdir}/${pkgname}-${pkgver}/License" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }