🔒 Repository is read-only – file editing is disabled.

recipes/utils/benchmark/PAGBUILD.yaml main

30 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930
pkgname: benchmark
pkgver: '1.9.5'
pkgrel: '1'
pkgdesc: A microbenchmark support library
url: 'https://github.com/google/benchmark'
arch: x86_64
depends: []
makedepends:
- cmake
source:
- 'https://github.com/google/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz'
sha256sums:
- 9631341c82bac4a288bef951f8b26b41f69021794184ece969f8473977eaa340
build: |
  cd ${pkgname}-${pkgver}
  mkdir build && cd build
  cmake \
      -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_INSTALL_LIBDIR=lib \
      -DBUILD_SHARED_LIBS=ON \
      -DBENCHMARK_ENABLE_LTO=ON \
      -DBENCHMARK_ENABLE_GTEST_TESTS=OFF \
      -DBENCHMARK_ENABLE_TESTING=OFF \
      ..

    make
    make DESTDIR=${PKGDIR} install
package: |
  true