# Maintainer: Xiaoxu Guo # Maintainer: László Várady # Contributor: Daichi Shinozaki pkgname=folly pkgver=2023.07.24.00 pkgrel=1 pkgdesc="An open-source C++ library developed and used at Facebook" arch=('x86_64') url="https://github.com/facebook/folly" license=('Apache') depends=('snappy' 'jemalloc' 'double-conversion' 'gflags' 'google-glog' 'libevent' 'boost>=1.51.0' 'boost-libs' 'fmt' 'openssl' 'zlib' 'bzip2' 'xz' 'lz4' 'zstd' 'libsodium' 'libdwarf' 'libaio' 'liburing' 'libunwind') makedepends=('cmake' 'gtest' 'gmock') source=("https://github.com/facebook/$pkgname/archive/v${pkgver}.tar.gz") sha256sums=('a07d96c6465d9cc3446dad19f8684701d6d0756a15a1aa992b6775c80df44ff1') build() { cd "$pkgname-$pkgver" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr -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/" }