mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
added community/benchmark
This commit is contained in:
parent
58cf1361fb
commit
8d98733dd7
1 changed files with 43 additions and 0 deletions
43
community/benchmark/PKGBUILD
Normal file
43
community/benchmark/PKGBUILD
Normal file
|
@ -0,0 +1,43 @@
|
|||
# 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.1
|
||||
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=('23082937d1663a53b90cb5b61df4bcc312f6dee7018da78ba00dd6bd669dfef2')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
mkdir -p build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver/build"
|
||||
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-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
|
||||
}
|
Loading…
Reference in a new issue