pkgname=benchmark pkgver=1.9.1 pkgrel=1 pkgdesc="Library to benchmark code snippets, similar to unit tests." arch=('x86_64') url="https://github.com/google/benchmark" license=('Apache') makedepends=('cmake') source=("https://github.com/google/benchmark/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('32131c08ee31eeff2c8968d7e874f3cb648034377dfc32a4c377fa8796d84981') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DBENCHMARK_ENABLE_TESTING=OFF \ -DBENCHMARK_INSTALL_DOCS=OFF \ -DBENCHMARK_ENABLE_GTEST_TESTS=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }