blob: 29b5d749eaaa61651e8c6d1dad96f27774e3940b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: David Huffman <storedbox@outlook.com>
# Maintainer: David Huffman <storedbox@outlook.com>
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"
|