mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
44 lines
1 KiB
Bash
44 lines
1 KiB
Bash
# 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
|
|
pkgver=1.5.2
|
|
pkgrel=1
|
|
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")
|
|
sha256sums=('dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
|
-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
|
|
}
|