1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Contributor: Philipp Claßen <philipp.classen@posteo.de>
7 pkgdesc="A microbenchmark support library"
9 url="https://github.com/google/benchmark"
14 source=("https://github.com/google/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha256sums=('ea2e94c24ddf6594d15c711c06ccd4486434d9cf3eca954e2af8a20c88f9f172')
18 cd "$srcdir/$pkgname-$pkgver"
23 cd "$srcdir/$pkgname-$pkgver/build"
26 -DCMAKE_BUILD_TYPE=None \
27 -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DCMAKE_INSTALL_LIBDIR=lib \
30 -DBUILD_SHARED_LIBS=ON \
31 -DBENCHMARK_ENABLE_LTO=ON \
32 -DBENCHMARK_ENABLE_GTEST_TESTS=OFF \
39 cd "$srcdir/$pkgname-$pkgver/build"
40 make DESTDIR="$pkgdir/" install