2020-07-09 00:45:16 +00:00
|
|
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
|
|
# Contributor: Philipp Claßen <philipp.classen@posteo.de>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - -DBENCHMARK_ENABLE_LTO=OFF
|
|
|
|
|
|
|
|
pkgname=benchmark
|
2022-01-12 00:21:54 +00:00
|
|
|
pkgver=1.6.1
|
2022-02-28 13:47:55 +00:00
|
|
|
pkgrel=2
|
2020-07-09 00:45:16 +00:00
|
|
|
pkgdesc="A microbenchmark support library"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/google/benchmark"
|
|
|
|
license=('Apache')
|
|
|
|
depends=('gcc-libs')
|
|
|
|
makedepends=('cmake')
|
|
|
|
|
|
|
|
source=("https://github.com/google/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
2022-01-12 00:21:54 +00:00
|
|
|
sha256sums=('6132883bc8c9b0df5375b16ab520fac1a85dc9e4cf5be59480448ece74b278d4')
|
2020-07-09 00:45:16 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
|
|
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2020-08-09 17:53:37 +00:00
|
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
2020-07-09 00:45:16 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBENCHMARK_ENABLE_LTO=OFF \
|
|
|
|
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF \
|
|
|
|
..
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|