# Contributor: David Huffman # Maintainer: David Huffman pkgname=glog pkgver=0.4.0 pkgrel=2 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 pc-file.patch " 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 fd58efd42b299bb2e7c38af9c900f3ae454a99fea2a9b7b20bea50347bde663127ab0c19b5f5b3fb69ed5e8e19a7b43eb173332fe993f7e1cba66bf99921a870 pc-file.patch"