# Maintainer: László Várady # Contributor: Aleksandar Trifunović # Contributor: Daichi Shinozaki pkgname=proxygen pkgver=2021.07.22.00 pkgrel=1 pkgdesc="A collection of C++ HTTP libraries including an easy to use HTTP server" arch=('x86_64') url="https://github.com/facebook/proxygen" license=('BSD') depends=('boost' 'boost-libs' 'folly' 'fizz' 'wangle' 'zstd' 'openssl' 'zlib' 'libcap' 'google-glog' 'gflags' 'fmt') makedepends=('cmake' 'git' 'python' 'gperf' 'gperftools' 'gtest' 'gmock') conflicts=('proxygen-git') source=("${url}/archive/v${pkgver}.tar.gz") sha256sums=('c4e19fe6ea1d36232fa23bc8f32be085f09cce312b12b743df017bd7e6333d17') build() { cd "$pkgname-$pkgver" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=OFF -S . -B _build cmake --build _build } check() { cd "$pkgname-$pkgver" cmake --build _build --target test } package() { cd "$pkgname-$pkgver" cmake --build _build --target install -- DESTDIR="$pkgdir/" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${pkgname}/external/http_parser/http_parser.h" \ "${pkgdir}/usr/include/${pkgname}/external/http_parser/http_parser.h" }