# Contributor: David Huffman # Maintainer: David Huffman pkgname=glog pkgver=0.4.0 pkgrel=0 pkgdesc="C++ implementation of the Google logging module" options="!check" # Tests fail to compile on aarch64 armhf and armv7 url="https://github.com/google/glog" arch="all" license="BSD-3-Clause" makedepends="cmake gflags-dev" subpackages="$pkgname-dev" source="https://github.com/google/glog/archive/v$pkgver/$pkgname-$pkgver.tar.gz" build() { mkdir build cd build cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DWITH_GFLAGS=ON \ -DWITH_THREADS=ON \ -DWITH_TLS=ON \ -DBUILD_SHARED_LIBS=ON \ -DPRINT_UNSYMBOLIZED_STACK_TRACES=OFF \ -DBUILD_TESTING=OFF \ .. make } package() { make -C build DESTDIR="$pkgdir" install } sha512sums="b585f1819ade2075f6b61dc5aaca5c3f9d25601dba2bd08b6c49b96ac5f79db23c6b7f2042df003f7130497dd7241fcaa8b107d1f97385cb66ce52d3c554b176 glog-0.4.0.tar.gz"