archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / benchmark / trunk / PKGBUILD
blob9ad7bd9efcbce57f916641eae5be7d2f5849e3f0
1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Contributor: Philipp Claßen <philipp.classen@posteo.de>
4 pkgname=benchmark
5 pkgver=1.8.0
6 pkgrel=1
7 pkgdesc="A microbenchmark support library"
8 arch=('x86_64')
9 url="https://github.com/google/benchmark"
10 license=('Apache')
11 depends=('gcc-libs')
12 makedepends=('cmake')
14 source=("https://github.com/google/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
15 sha256sums=('ea2e94c24ddf6594d15c711c06ccd4486434d9cf3eca954e2af8a20c88f9f172')
17 prepare() {
18   cd "$srcdir/$pkgname-$pkgver"
19   mkdir -p build
22 build() {
23   cd "$srcdir/$pkgname-$pkgver/build"
25   cmake \
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 \
33     ..
35   make VERBOSE=1
38 package() {
39   cd "$srcdir/$pkgname-$pkgver/build"
40   make DESTDIR="$pkgdir/" install